Skip to content

Disagreement between Spatial Index Report in GeoPandas and QGIS #3155

Answered by theroggy
DimitrisMantas asked this question in Q&A
Discussion options

You must be logged in to vote

GeoPandas is an in-memory analytics library... so all data will typically be loaded in-memory for further processing. Because it does all processing in memory, it will also create its own in-memory spatial index the first time you apply a spatial operation that needs one. Some more info in the documentation of has_sindex.

So, GeoPandas will typically not use the spatial index available in the GeoPackage. An exception to this is at the stage when you are reading the data (to memory) using geopandas.read_file:

  • If you use the parameters bbox= or mask= you can limit the data being loaded to the rows that intersect with the bbox/geometry mask specified. At this stage the spatial index in the …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DimitrisMantas
Comment options

@theroggy
Comment options

@DimitrisMantas
Comment options

Answer selected by DimitrisMantas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants