[Qgis-developer] Use of Spatial Index

Martin Dobias wonder.sk at gmail.com
Thu Jul 28 14:45:53 EDT 2011


On Thu, Jul 28, 2011 at 8:36 PM, maaza mekuria <sailmcm at yahoo.com> wrote:
> Thank you, Martin for your explanation. I ahve one more followup question.
>
> Can the spatial index be composed of features other than points? I do not see any restriction in the documentation. Can I use features such as lines and polylines in an in-memory spatial index and use these as one uses points?

Yes, you can use lines and polygons. Spatial index only uses bounding
boxes of the geometries to for the queries. Therefore also
intersection query will return features that have bounding box of
their geometry intersecting the query rectangle.

Martin


More information about the Qgis-developer mailing list