[gdal-dev] ogr2ogr with append fails to convert truncated fields
Chaitanya kumar CH
chaitanya.ch at gmail.com
Mon Feb 25 08:14:59 PST 2013
Can we expect the fields to remain in the same order every time?
Hi All,
Related to issue #3247 <http://trac.osgeo.org/gdal/ticket/3247> 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.
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).
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:
ogr2ogr -append -f "ESRI Shapefile" -fieldmap "0,1,2,3,4,5" destination.shp
[source]
Would that workaround be sufficient?
Best regards,
Tamas
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130225/8bb75be9/attachment-0001.html>
More information about the gdal-dev
mailing list