Marco,<br><br>I have been working on this. <a href="http://trac.osgeo.org/gdal/ticket/2798">http://trac.osgeo.org/gdal/ticket/2798</a><br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 6:12 PM, Hugentobler  Marco <span dir="ltr">&lt;<a href="mailto:marco.hugentobler@karto.baug.ethz.ch">marco.hugentobler@karto.baug.ethz.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi gdal/ogr devs<br>
<br>
In QGIS, there is a bug where updates to shapefiles are not displayed until the spatial index of a shapefile is recreated (<a href="http://trac.osgeo.org/qgis/ticket/1572" target="_blank">http://trac.osgeo.org/qgis/ticket/1572</a>).<br>

<br>
It seems to me that OGR does not update the index automatically when calling e.g. OGR_L_CreateFeature and then OGR_L_SyncToDisk.<br>
<br>
What I did is to check (in the ogr provider of qgis) if the shapefile already has an index file and, if yes, create a new spatial index. But this way, the whole index needs to be recreated, so I wanted to ask here on the list if you know about any more efficient and / or more elegant way to solve this problem.<br>

<br>
<br>
Thanks for your help,<br>
Marco<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>
</blockquote></div><br><br clear="all">Best regards,<br>-- <br>Chaitanya kumar CH.<br>