Hi, 2014-10-14 11:35 GMT+02:00 Even Rouault <[email protected]>: > Paul indeed identified the issue. If you use SetFrom(), it will not manage to > match the target field names with the source ones, because CreateField() has > done the field name truncation. ogr2ogr builds an integer map from the source > field index to the target field index and uses SetFromWithMap(). You can have > a > look at swig/python/samples/ogr2ogr.py. > In the simple case (for drivers that don't have compulsory fields already > created at layer creation), the map is the identity, i.e. panMap[i] = i with i > from 0 to nFieldCount - 1.
thanks a lot! It helped... Martin -- Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
