[gdal-dev] Rename a field with ogr2ogr?

Aleksey Naumov anaumov at gmail.com
Tue May 11 13:10:15 EDT 2010


Another question on ogr2ogr: is there a way to rename a field while
converting a layer? E.g. using ogr2ogr to convert a personal geodatabase
layer with long field names to a shapefile, I'd like to avoid automatic
truncation of field names, e.g. from "long_field_name123" to "long_field". I
know I can use -select switch to pick certain fields, but what about
renaming (perhaps some trick via the -sql option?)?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100511/69057c37/attachment.html

More information about the gdal-dev mailing list