<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
This may be very easy but I did not find a way to use ogr2ogr to
change a shapefile field (attribute) name.<br>
I've tried something like this : ' ogr2ogr -f "ESRI Shapefile" -sql
"ALTER TABLE CHEMIN RENAME COLUMN prec_alti TO foo" CHEMIN2.shp
CHEMIN.shp ' but I get the following error "ERROR 6: Can't alter
field definition on a read-only shapefile layer." (I've tried to use
the "AlterFieldDefn=TRUE" layer option
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
with no success whatsoever)<br>
<br>
Thanx for any help,<br>
<br>
Manu<br>
<pre class="moz-signature" cols="72">--
Emmanuel Séguin
SIEL - Pôle technique du Géoportail
Institut Géographique National
2/4, avenue Pasteur - 94165 Saint Mandé Cedex
Phone : +33 1.43.98.83.54
<a class="moz-txt-link-freetext" href="http://fr.linkedin.com/in/emmmanuelseguin">http://fr.linkedin.com/in/emmmanuelseguin</a>
</pre>
</body>
</html>