[gdal-dev] How to exploit the spatial index (*.qix) file for spatial filtering?
Chaitanya kumar CH
chaitanya.ch at gmail.com
Thu Feb 13 20:46:00 PST 2014
Chuiqing,
The OGR Shapefile driver supports spatial indexing through qix files. To
explicitly create a spatial index use the Create Index command:
CREATE SPATIAL INDEX ON tablename [DEPTH N]
Depth can range from 1 to 12. You can issue the SQL command using ogrinfo.
ogrinfo -sql 'CREATE SPATIAL INDEX ON shapefilename [DEPTH N]'
path/to/shapefile/directory
http://www.gdal.org/ogr/drv_shapefile.html -> Spatial and Attribute Indexing.
On Fri, Feb 14, 2014 at 3:12 AM, <chqzeng at gmail.com> wrote:
> Hi chaitanya_ch,
> I know you are an expert on this, I want to know how can I use GDAL
> library to implemented qix reading and using in spatial filtering.
> I have many large shape files in Gigbyte level, they are very slow when
> navigating in my app. I want to use *.qix file through GDAL library to
> accelerate it.
>
> How can I do that?
> Thank you,
>
> C. Zeng
>
>
> _____________________________________
> Sent from http://osgeo-org.1560.x6.nabble.com
>
>
--
Best regards,
Chaitanya kumar CH.
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140214/d62837d1/attachment-0001.html>
More information about the gdal-dev
mailing list