| Crates.io | random-geojson |
| lib.rs | random-geojson |
| version | 0.1.4 |
| created_at | 2025-06-13 15:13:14.76926+00 |
| updated_at | 2025-06-13 15:13:14.76926+00 |
| description | Generate random GeoJSON data |
| homepage | |
| repository | https://github.com/jjcfrancisco/random-geojson |
| max_upload_size | |
| id | 1711559 |
| size | 40,638 |
random-geojson is a command-line tool written in Rust for generating random GeoJSON geometries. It supports multiple geometry types (Point, LineString, Polygon, and All) and coordinate systems (WGS84, WebMercator, 4326, 3857). The tool can generate a collection of random features with customizable properties and output them to a file in either compact or pretty-printed JSON.
FeatureCollectionPoint, LineString, Polygon, and All (all geometry types)WGS84 (EPSG:4326) or Web Mercator (EPSG:3857)random-geojson [OPTIONS]
--num-properties <NUM_PROPERTIES>
Number of properties to generate for each feature (default: 0)
--length <LENGTH>
Number of features to generate (default: 100)
--geometry-type <GEOMETRY_TYPE>
Type of geometry to generate. Possible values: Point, LineString, Polygon, All (default: All)
--coordinate-system <COORDINATE_SYSTEM>
Coordinate system to use. Possible values: WGS84, WebMercator, 4326, 3857 (default: WGS84)
--pretty
Output GeoJSON in pretty-printed format (default: false)
--output-file <OUTPUT_FILE>
File name to save the generated GeoJSON (default: random.geojson)
Generate 10 random points in WGS84 with 3 properties per feature and pretty-printed output:
random-geojson --length 10 --geometry-type Point --num-properties 3 --pretty -o mydata.geojson
The tool generates a valid GeoJSON FeatureCollection with the specified number of features and properties. Each feature has a unique UUID as its id, random geometry, and random property values.
Licensed under MIT
This tool is intended for generating synthetic spatial data for testing, development, and demonstration purposes.