[gdal-dev] Deleting fields OGR
Chaitanya kumar CH
chaitanya.ch at gmail.com
Sat Jan 1 13:26:17 EST 2011
Håvard,
You can create a copy of the dataset while skipping the field. For
shapefiles you won't have to mention the .shp file. Opening just the .dbf
file will be enough.
Similar thing can be done using ogr2ogr by specifying the -select option
without the specified field's name. http://www.gdal.org/ogr2ogr.html
2011/1/1 Håvard Wahl Kongsgård <haavard.kongsgaard at gmail.com>
> OK; what it the best alternative method in Python etc. to delete shapefile
> fields? Using the shapefile functions in R (via python is one alternative).
>
> 2011/1/1 Even Rouault <even.rouault at mines-paris.org>
>
> Le samedi 01 janvier 2011 19:08:23, Håvard Wahl Kongsgård a écrit :
>> > Hi, in gdal/ogr is there a function to delete fields(like
>> CreateField())?
>>
>> Not yet, but this has been discussed in
>> http://trac.osgeo.org/gdal/ticket/2671
>>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110101/9e965340/attachment.html
More information about the gdal-dev
mailing list