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

Zooming results in parts of features disappearing when spatial indexes SBN/SBX from ESRI are present #18566

Closed
qgib opened this issue Apr 21, 2014 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Apr 21, 2014

Author Name: Maxim Dubinin (@simgislab)
Original Redmine Issue: 10098
Affected QGIS version: 2.6.0
Redmine category:vectors


  1. Add a layer: http://gis-lab.info/forum/download/file.php?id=8744
  2. Zoom in once

Before:
image
After:
image

QGIS Win7, 32bit, 2e6927f (today nightly)

It seems like there is no such problem under Ubuntu.

@qgib
Copy link
Contributor Author

qgib commented Apr 21, 2014

Author Name: Maxim Dubinin (@simgislab)


wrong after link:
http://m-d.me/img/ss/20140421-w30-17kb.jpg

Also, there is no such problem in QGIS 2.1

@qgib
Copy link
Contributor Author

qgib commented Apr 21, 2014

Author Name: Maxim Dubinin (@simgislab)


figured it out.

New QGIS is built agains GDAL 1.10 which now takes into account spatial indexes SBN/SBX from ESRI tribe. Removing those fixes everything.

Still, I think we need to do something about it, either GDAL is incorrectly reading those indices and QGIS should ignore them or something else is going on.

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2014

Author Name: Eric Brelsford (Eric Brelsford)


Also seeing this, in QGIS version 2.6 on Ubuntu 14.10. Deleting SBN and SBX fixed it. I see it with all of these files: http://www.nyc.gov/html/dcp/html/bytes/dwn_pluto_mappluto.shtml#mappluto

If I save the layer as a new shapefile in QGIS and open it, it works fine. Presumably because it doesn't create the SBN or SBX files.

@qgib
Copy link
Contributor Author

qgib commented Nov 20, 2014

Author Name: Giovanni Manghi (@gioman)


this should be closed because seems a gdal issue not a qgis one.


  • operating_system was changed from Windows 7 to
  • version was changed from 2.2.0 to 2.6.0
  • os_version was changed from master to
  • subject was changed from Zooming results in parts of features disappearing to Zooming results in parts of features disappearing when spatial indexes SBN/SBX from ESRI are present
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 20, 2014

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Wouldn't it be better to create a GDAL issue and link it here but keep this issue open until it is fixed on GDAL side?

@qgib
Copy link
Contributor Author

qgib commented May 10, 2015

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to up/downstream
  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2015

Author Name: Andy Harfoot (Andy Harfoot)


Just adding another observation that may be a particular subset of a wider issue with GDAL's support for SBN / SBX indexes. The GDAL support is read only, so whilst the indexes are used without problems in QGIS in a dataset that is unmodified from the point of export from ArcGIS, as soon as edits are made that alter the order or number of features in the dataset, the ESRI spatial index will not be updated and therefore become corrupt, causing features to disappear when the spatial index is consulted. Building a QIX index fixes this, as does deleting the SBN / SBX files.

This isn't a GDAL issue, GDAL is working as intended, instead QGIS is making incorrect assumptions about GDAL's capabilities.

Tested on Win 7 x64 QGIS 2.8.2 x64 Standalone and 2.10 x64 OSGeo4W


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Jul 23, 2015

Author Name: Andy Harfoot (Andy Harfoot)


According to the comment in "GDAL !#15412":https://trac.osgeo.org/gdal/ticket/6042 GDAL should delete ESRI indexes when a shapefile is edited to prevent them from becoming out of sync. Does QGIS use GDAL to edit shapefiles? If so, why is this behaviour not observed?

@qgib
Copy link
Contributor Author

qgib commented May 23, 2016

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from up/downstream to

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR

Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • status_id was changed from Reopened to Closed
  • resolution was changed from to end of life

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant