A simple python script to split a shapefile into smaller pieces.
-
It will be very slow unless you add a shapefile index to speed up the spatial operations. For example:
ogrinfo file1.shp -sql "CREATE SPATIAL INDEX ON file1"
-
There will be duplicate features at the split edges. This can be fixed in the future.