Usage

Split GeoJSON files

  • It splits a GeoJSON file into smaller GeoJSON files. This script can work with aws - s3 uri.
COMMAND REQUIRED DESCRIPTION
--geojson_input yes Path to GeoJSON to process.
--size yes Size of geometries per split file.
--geojson_out yes Path to GeoJSON output.

Return:

GeoJSON files - Each file contains a especific number of features.

Command line:

docker run --rm -v ${PWD}:/mnt/data developmentseed/geokit:python.latest geo \
    fc_split \
    --geojson_input=<INPUT_GEOJSON> \
    --size=number_size \
    --geojson_output=<OUTPUT_GEOJSON>