[gdal-dev] problem in removing feature
Chaitanya kumar CH
chaitanya.ch at gmail.com
Mon Oct 29 03:49:02 PDT 2012
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.kriishna at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121029/04fc0186/attachment.html>
More information about the gdal-dev
mailing list