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

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Fri Jan 27 04:28:24 EST 2012

Chaitanya kumar CH <chaitanya.ch <at> gmail.com> writes:

> The SQL command to create a spatial index can be given through ogrinfo.ogrinfo
-sql "CREATE SPATIAL INDEX ON file1 [DEPTH N]" file1.shp

Good to know. I would suggest adding this example into shapefile driver page
http://gdal.org/ogr/drv_shapefile.html. I would have never guessed to use
ogrinfo for that.

-Jukka Rahkonen-

More information about the gdal-dev mailing list