[Gdal-dev] Another Question about OGRDataSource::ExecuteSQL
Frank Warmerdam
warmerdam at pobox.com
Thu May 6 09:53:45 EDT 2004
jody at ifi.unizh.ch wrote:
> Yeah, this definitely answers my question. But also managed to spark my
> interest with respect to spatial filtering:
>
> Is the spatial filtering done by brute force, i.e. comparing the
> Extents of every feature with the given OGRGeometry?
> Or is a sort of index created in which the features' extents
> are related with an appropriate encoding with respect to a Quad-Tree, for
> instance?
Jody,
In general the spatial query is applied in a driver determined fashion.
Drivers such as PostGIS and MapInfo TAB which have inherent spatial indexing
already available take advantage of it. The vast majority of drivers just
read all features and then discard those outside the spatial query area
(including ESRI Shapefiles).
I try to include some notation in the format driver page if a driver has
accelerated spatial indexing. However, I am not too careful about that.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list