Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ms_simplify returns corrputed file because of GeoJSON size limit #164

Open
victorcazalis opened this issue Jul 11, 2023 · 0 comments
Open

Comments

@victorcazalis
Copy link

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 :/ )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant