Håvard,<br><br>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.<br>Similar thing can be done using ogr2ogr by specifying the -select option without the specified field's name. <a href="http://www.gdal.org/ogr2ogr.html">http://www.gdal.org/ogr2ogr.html</a><br>
<br><div class="gmail_quote">2011/1/1 Håvard Wahl Kongsgård <span dir="ltr"><<a href="mailto:haavard.kongsgaard@gmail.com">haavard.kongsgaard@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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).<br><br><div class="gmail_quote">2011/1/1 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><div class="im">
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Le samedi 01 janvier 2011 19:08:23, Håvard Wahl Kongsgård a écrit :<br>
<div>> Hi, in gdal/ogr is there a function to delete fields(like CreateField())?<br>
<br>
</div>Not yet, but this has been discussed in <a href="http://trac.osgeo.org/gdal/ticket/2671" target="_blank">http://trac.osgeo.org/gdal/ticket/2671</a><br>
</blockquote></div></div><br><br>
<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"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>