Hi All,<br><div class="gmail_quote"><div><br></div>Related to <a href="http://trac.osgeo.org/gdal/ticket/3247" target="_blank">issue #3247</a> we experienced, that if we use ogr2ogr to append source data to a shapefile destination (by using the -append flag) and field name truncation is taking place, the corresponding values are not copied.<div>

<br></div><div>This is because when setting up the field index map (in ogr2ogr) the destination (truncated) field indexes are searched by the name of of the source fields (the long names).</div><div><br></div><div>Since it's not always trivial to find the correct fields by names, how about exposing the field map itself as an option, something like:</div>

<div><br></div><div>ogr2ogr -append -f "ESRI Shapefile" -fieldmap "0,1,2,3,4,5" destination.shp  [source]</div><div><br></div><div><br></div><div>Would that workaround be sufficient?</div><div><br></div>

<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div>
</div><br>