[gdal-dev] ogr2ogr changes field length

matteo matteo.ghetta at gmail.com
Wed Oct 6 08:37:33 PDT 2021


Hi list,

I've a script that uses ogr2ogr to copy, actually overwrite, tables from 
PG to shapfiles.

The PG fields are all text (without a specified length) and the target 
shapefile that will be overwritten have all text field length equals to 254.

When overwriting the length is changes to 80. Is there any specific 
option to keep the original field length?

Cheers and thanks

Matteo


More information about the gdal-dev mailing list