Siva,

Make sure you open the data source with the bUpdate option set to TRUE in
OGROpen().

On Mon, Oct 29, 2012 at 4:14 PM, SIVA RAMA KRISHNA
<s.r.kriis...@gmail.com>wrote:

> hai chaitanya,
>
>
>            I have a single layer shape file with many features
>
>           I want to remove   a feature by the following way
>
>
>
> while( (poFeature = poLayer->GetNextFeature()) != NULL )
>          {
>               poLayer->DeleteFeature(poFeature->GetFID());
>
>               qDebug()<<poFeature->GetFieldCount();
>               qDebug()<<poFeature->GetFID();
>           }
>
> i am getting a error for all shape files which are not read only
>
> ERROR 1: The DeleteFeature() operation is not permitted on a read-only
> shapefile.
>
>
> any help would be great for me
>
> With Regards
>
>


-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to