The SQL command to create a spatial index can be given through ogrinfo.<br><pre>ogrinfo -sql "CREATE SPATIAL INDEX ON file1 [DEPTH N]" file1.shp<br></pre><br><div class="gmail_quote">On Sun, Jan 22, 2012 at 3:48 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le dimanche 22 janvier 2012 11:14:22, aperi2007 a écrit :<br>
<div class="im">> Hi,<br>
><br>
> I'm try-ing to export from spatialite to shapefile using ogr2ogr.<br>
> it work but I like to procude also the spatial-index file .qix.<br>
> I don't find any option to do this for shapefile.<br>
><br>
> Is this possible ?<br>
<br>
</div>Yes, see the "Spatial and attribute indexing" section of<br>
<a href="http://gdal.org/ogr/drv_shapefile.html" target="_blank">http://gdal.org/ogr/drv_shapefile.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Thx,<br>
><br>
> Andrea.<br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>