Usage
Distance per each feature
- It gets the length of each feature (LineString/MultiLineString) into a GeoJSON file and it will generate a new GeoJSON file with all features with a distance attribute.
COMMAND | REQUIRED | DESCRIPTION |
---|---|---|
--geojson_input | yes | Path to GeoJSON to process. |
--unit_measurement | yes | Unit of distance measurement: - meters: length in meters. - kilometers: length in kilometers. |
--geojson_output | yes | Path to GeoJSON output. |
Return:
GeoJSON file - Each linestring/multilinestring feature in the GeoJSON file has a distance attribute in the unit measurement selected.
Command line:
docker run --rm -v ${PWD}:/mnt/data developmentseed/geokit:python.latest geo \
distance \
--geojson_input=<INPUT_GEOJSON> \
--unit_measurement=kilometers \
--geojson_output=<OUTPUT_GEOJSON>
Use case:
- Get the length in kilometers of each linestring/multilinestring.