[gdal-dev] How create a spatial index for shapefiles

Chaitanya kumar CH chaitanya.ch at gmail.com
Sun Jan 22 06:04:54 EST 2012


The SQL command to create a spatial index can be given through ogrinfo.

ogrinfo -sql "CREATE SPATIAL INDEX ON file1 [DEPTH N]" file1.shp


On Sun, Jan 22, 2012 at 3:48 PM, Even Rouault
<even.rouault at mines-paris.org>wrote:

> Le dimanche 22 janvier 2012 11:14:22, aperi2007 a écrit :
> > Hi,
> >
> > I'm try-ing to export from spatialite to shapefile using ogr2ogr.
> > it work but I like to procude also the spatial-index file .qix.
> > I don't find any option to do this for shapefile.
> >
> > Is this possible ?
>
> Yes, see the "Spatial and attribute indexing" section of
> http://gdal.org/ogr/drv_shapefile.html
>
> >
> > Thx,
> >
> > Andrea.
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
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/20120122/75bfd83a/attachment-0001.html


More information about the gdal-dev mailing list