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, <chqz...@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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to