Closed andrewharvey closed 7 years ago
Unfortunately ogr2ogr does not support this.
No problem. Right now I'm using something like this:
IFS=$'\n'
for layer in `ogrinfo SourceFile.ext | grep '^[[:digit:]]' | cut -d' ' -f2-`; do
ogr2ogr -f GeoJSON "${layer}.geojson" SourceFile.ext "$layer"
done
If a source file contains multiple layers, it would nice if ogre would split it up into multiple GeoJSON output files