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

Creating spatial index on Shapefile with invalid geometries will make the layer disappear in map canvas when zooming and panning #21468

Closed
qgib opened this issue Sep 24, 2015 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering

Comments

@qgib
Copy link
Contributor

qgib commented Sep 24, 2015

Author Name: **Laurence Bechet ** (@LBT-AiP)
Original Redmine Issue: 13419
Affected QGIS version: master
Redmine category:map_canvas


I've got one file which behaves strangely when associated with a spatial index. When I zoom in, the layer disappears from the project and from any opened composers. If I remove the .qix file, the display is ok. If I re-create in qGIS the index (layer properties/Create spatial index) the layer goes back to its random behaviour.


@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2015

Author Name: Saber Razmjooei (@saberraz)


Confirmed also in master. Works fine in 2.8.


  • fixed_version_id was configured as Version 2.12
  • category_id was configured as Map Canvas
  • priority_id was changed from Normal to Severe/Regression
  • version was changed from 2.10.1 to master
  • operating_system was changed from windows to
  • os_version was changed from 7 64bits to

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2015

Author Name: Salvatore Larosa (@slarosa)


I cannot reproduce here, please attach a small testcase.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 26, 2015

Author Name: **Laurence Bechet ** (@LBT-AiP)


I thought I have attached testcase. Anyway, here they are again.


  • 9109 was configured as spatialIndex.zip
  • fixed_version_id removed Version 2.12

@qgib
Copy link
Contributor Author

qgib commented Sep 27, 2015

Author Name: Saber Razmjooei (@saberraz)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2015

Author Name: Salvatore Larosa (@slarosa)


Thanks for the sample data.

I can confirm the issue although the attached testcase seems to have invalid geometries.

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2015

Author Name: Saber Razmjooei (@saberraz)


I can confirm that it doesn't happen with shapefile with correct geometries.


  • subject was changed from Shapefile with spatial index makes it disappear when zoomed in to Creating spatial index on Shapefile with invalid geometries will make the file disappear when zooming and panning

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2015

Author Name: Saber Razmjooei (@saberraz)


  • subject was changed from Creating spatial index on Shapefile with invalid geometries will make the file disappear when zooming and panning to Creating spatial index on Shapefile with invalid geometries will make the layer disappear in map canvas when zooming and panning

@qgib
Copy link
Contributor Author

qgib commented May 22, 2016

Author Name: Giovanni Manghi (@gioman)


seems to work as expected on 2.14.3 and master, please reopen if necessary.


  • resolution was changed from to worksforme
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering labels May 25, 2019
@qgib qgib closed this as completed May 25, 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! Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant