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
Shapefile: error out on valid .sbn file #9430
Comments
…sing nBinStart Fixes OSGeo#106 / OSGeo/gdal#9430
…ors with non-increasing nBinStart Fixes OSGeo/shapelib#106 / OSGeo#9430
That was actually a fundamental algorithmic bug that has existed forever based on a wrong assumption about the ordering of some elements in the .sbn. I guess most .sbn in the wild met our wrong assumption, but for larger datasets like the one of this ticket, it could be defeated |
…ors with non-increasing nBinStart Fixes OSGeo/shapelib#106 / OSGeo#9430
…sing nBinStart Fixes OSGeo#106 / OSGeo/gdal#9430
Thank you @rouault, this thing really tested my patience. You can't imagine how happy I am with the outcome. |
…sing nBinStart Fixes OSGeo#106 / OSGeo/gdal#9430
…sing nBinStart Fixes OSGeo#106 / OSGeo/gdal#9430
…ors with non-increasing nBinStart Fixes OSGeo/shapelib#106 / OSGeo#9430
…ors with non-increasing nBinStart Fixes OSGeo/shapelib#106 / OSGeo#9430
…sing nBinStart Fixes OSGeo#106 / OSGeo/gdal#9430
…ors with non-increasing nBinStart Fixes OSGeo/shapelib#106 / OSGeo#9430
Feature description
Here's a dataset (Shapefile with spatial index .sbn / .sbx) for which
ogrinfo
with spatial filter returns:Looks like shapelib detects an error regarding the spatial index and in consequence the spatial index is not used but the matching features could still be found (the normal way without spatial index).
Suggestion is here to improve the
ogrinfo
output to make it more clear what's going on.Additional context
It's kind of surprising that for this well established dataset such an error is detected -> OSGeo/shapelib#106
The text was updated successfully, but these errors were encountered: