I would like to use an ogr2ogr command to export features as multiple separate geojson files from a single GeoJSON feature collection. I have tried using the
-explodecollections command but I am unsure how I use it. These are the commands I've tried...
ogr2ogr -explodecollections -f GeoJSON -t_srs crs:84 <output dir> <input geojson>
ERROR 6: The GeoJSON driver does not overwrite existing files. ERROR 1: GeoJSON driver failed to create <output dir>
ogr2ogr -explodecollections -f GeoJSON -t_srs crs:84 <output geojson> <input geojson>
Creates a single Feature Collection containing all the features, much like the original geojson file.
I have tried loads of other combinations of these commands but with no success.