Siva,<br><br>Make sure you open the data source with the bUpdate option set to TRUE in OGROpen().<br><br><div class="gmail_quote">On Mon, Oct 29, 2012 at 4:14 PM, SIVA RAMA KRISHNA <span dir="ltr"><<a href="mailto:s.r.kriishna@gmail.com" target="_blank">s.r.kriishna@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hai chaitanya,<br><br><br>           I have a single layer shape file with many features <br><br>          I want to remove   a feature by the following way<br>
<br><br><br>while( (poFeature = poLayer->GetNextFeature()) != NULL )<br>
         {<br>              poLayer->DeleteFeature(poFeature->GetFID());<br><br>              qDebug()<<poFeature->GetFieldCount();<br>              qDebug()<<poFeature->GetFID();<br>          }<br>

<br>i am getting a error for all shape files which are not read only<br>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:#b20808">ERROR 1: The DeleteFeature() operation is not permitted on a read-only shapefile.</span></p>

<br><br>any help would be great for me<br><br>With Regards<br><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>