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
Any filepath being opened with fiona via gpd.read_file is parsed through vsi_path() in order to:
# Opening a file via URL or file-like-object above automatically detects a# zipped file. In order to match that behavior, attempt to add a zip scheme# if missing.
Which then passes through parseurl which splits on #s and drops part of my file path
The issue describe here is to do with reading local file paths containing hashes - these are incorrectly inferred as uri fragments (as geopandas also supports reading from urls/s3/etc directly.
If you have a real world example of where this fix may go wrong with URIs, feel free to share.
Code Sample, a copy-pastable example
returns
('/dropbox/', '', 'file')
Problem description
Any filepath being opened with fiona via gpd.read_file is parsed through vsi_path() in order to:
Which then passes through parseurl which splits on #s and drops part of my file path
Expected Output
(/dropbox/#02 Datastore/sample.shp','', 'file')
Suggested solution idea?
geopandas/geopandas/io/util.py
Line 27 in 5186e69
Could also collect fragments from urlparse and join it to the URI
The text was updated successfully, but these errors were encountered: