The SQL command to create a spatial index can be given through ogrinfo.<br><pre>ogrinfo -sql &quot;CREATE SPATIAL INDEX ON file1 [DEPTH N]&quot; file1.shp<br></pre><br><div class="gmail_quote">On Sun, Jan 22, 2012 at 3:48 PM, Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>&gt;</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">&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m try-ing to export from spatialite to shapefile using ogr2ogr.<br>
&gt; it work but I like to procude also the spatial-index file .qix.<br>
&gt; I don&#39;t find any option to do this for shapefile.<br>
&gt;<br>
&gt; Is this possible ?<br>
<br>
</div>Yes, see the &quot;Spatial and attribute indexing&quot; 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>
&gt;<br>
&gt; Thx,<br>
&gt;<br>
&gt; Andrea.<br>
&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br>
&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt; <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>