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

Attempt to auto-discover shapefile when nested within folder(s) in zip file #494

Open
brendan-ward opened this issue Nov 8, 2024 · 0 comments

Comments

@brendan-ward
Copy link
Member

If a shapefile is nested in a subfolder within a zip file (example here), GDAL will emit a misleading error about the zip file not being a recognized format.

For example, if you have <zip file>/layers/POLYGON.shp, calling any of the read functions on <zip file> as the path will fail, whereas if you pass in the path to the shapefile within the zip file, it works fine This is confusing to users and inconvenient, given that other tools like QGIS will open it fine.

We can't do this for remotely hosted files, but it seems theoretically possible to do so with local or in-memory files.

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