Usage
Keep attributes in features
- It allows you to keep only the keys (properties) that are specified, removing the others ones. This script can work with aws - s3 uri.
| COMMAND | REQUIRED | DESCRIPTION |
|---|---|---|
| --geojson_input | yes | Path to GeoJSON to process. |
| --keys | yes | Keys to keep. Can be multiple. |
| --geojson_out | no | Path to GeoJSON output. |
Return:
GeoJSON file - It contains features with the keys that were keep.
Command line:
docker run --rm -v ${PWD}:/mnt/data developmentseed/geokit:python.latest geo \
keepattributes \
--geojson_input=<INPUT_GEOJSON> \
--keys=key1 \
--keys=key2 \
--keys=key3 \
--geojson_out=<OUTPUT_GEOJSON>
Use case:
- Keep only the keys:
country,dc_has_pattern_schoolandproject
