Usage
Add new attributes to features
- It adds new attributes in each features in the GeoJSON file. This script can work with aws - s3 uri.
COMMAND | REQUIRED | DESCRIPTION |
---|---|---|
--geojson_input | yes | Path to GeoJSON to process. |
--tags | yes | Attributes to add in format: key=value. |
--geojson_out | yes | Path to GeoJSON output. |
Return:
GeoJSON file - It contains features with the new attributes that were added.
Command line:
docker run --rm -v ${PWD}:/mnt/data developmentseed/geokit:python.latest geo \
addattributefc \
--geojson_input=<INPUT_GEOJSON> \
--tags key1=value1 \
--tags key2=value2 \
--geojson_out=<OUTPUT_GEOJSON>
Use case:
- Add the attributes:
project
andcountry
to each feature in the GeoJSON file.