<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>Is there a way to select one or two fields from a input data source to update specific fields of an existing output data source?</p>
<p><br>
</p>
<p>Let's say I want to get the values from a prticular field of the input data source and the geometry to update a specific field and the geometry of an existing output data source.<br>
</p>
<p><br>
</p>
<p>Looking at the org2gr "-fieldmap" options it says it only work with "-append" but it doesn't examplain why. If it works it would be something like:</p>
<p><br>
</p>
<p>$ ogr2ogr -update -f format output_data_source input_data_source -nln output_layer -sql "select field1 from input_layer" -fieldmap 4</p>
<p><br>
</p>
<p>Where "4" would indicate the 3th field of the output_layer.<br>
</p>
<br>
<p>Does anybody have another solution for that?</p>
<p><br>
</p>
<p>Thanks.</p>
<p><br>
</p>
<p>Ivan</p>
<p><br>
</p>
</div>
</body>
</html>