-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Spatial Indexing of Shapefiles on first load #14267
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jonathan Moules (Jonathan Moules) Ah, it depends what you mean. I actually encountered this by loading a shapefile with ~3million line features so I can answer your question. On the other hand, I doubt (but haven't tested it) that a spatial index will speed viewing of the entire dataset at once, which is what you may be testing. It shouldn't, that's not how they work. But you don't typically use a dataset with that many features by viewing it all at once (you won't be able to see the features after all). |
Author Name: Giovanni Manghi (@gioman) Jonathan Moules wrote:
Of course, you are right. The feature request (to add spatial indexes on load) make perfectly sense. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Alexander Bruy (@alexbruy)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Pirmin Kalberer (Pirmin Kalberer)
|
Author Name: Giovanni Manghi (@gioman)
|
I'd like te add a vote on this one. Is a nice to have, but it would eliminate quite some performance annoyance with new users... |
Author Name: Jonathan Moules (Jonathan Moules)
Original Redmine Issue: 4330
Redmine category:vectors
Hi,
Earlier today I loaded three shapefiles into my 1.7.0 QGIS with a combined 5million+ features. QGIS defaults to "visible" for new layers, so these hung the program for several minutes as they don't have spatial indexes.
My suggestion therefore is that whenever a user adds a shapefile with more than x features (x = 10,000? I dunno) that doesn't have a QGIS spatial index, QGIS pops up a dialog asking the user if they want to create an index. For bonus points it could have checkboxes for "remember my answer for this session" and "remember my answer always". ArcGIS does this with Rasters and pyramids - it's very useful.
The text was updated successfully, but these errors were encountered: