You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an error when using ms_simplify with a large shapefile saying the file is corrupted and cannot be written: "The source could be corrupt or not supported. See st_drivers() for a list of supported formats."
After some investigation (see details here) it turns out this is due to a default maximum size limit of 200MB for GeoJSON files. This can be changed with Sys.setenv(OGR_GEOJSON_MAX_OBJ_SIZE=900)
It could be worth adding a warning in ms_simplify when that errors is returned to indicate how to increase this limit.
(sorry Andy, I didn't see your request to open an issue before today, although you wrote it 5 months ago :/ )
The text was updated successfully, but these errors were encountered:
I got an error when using ms_simplify with a large shapefile saying the file is corrupted and cannot be written: "The source could be corrupt or not supported. See
st_drivers()
for a list of supported formats."After some investigation (see details here) it turns out this is due to a default maximum size limit of 200MB for GeoJSON files. This can be changed with
Sys.setenv(OGR_GEOJSON_MAX_OBJ_SIZE=900)
It could be worth adding a warning in ms_simplify when that errors is returned to indicate how to increase this limit.
(sorry Andy, I didn't see your request to open an issue before today, although you wrote it 5 months ago :/ )
The text was updated successfully, but these errors were encountered: