Hi,

GDAL has the internal default of 80 characters. GDAL users do not really need 
other options because fields are automatically expanded when longer strings are 
appended afterwards but if the shapefile is used in some other software it does 
happen that it is impossible to insert long strings because there is no room 
for that in the table. I suppose that you also know that by using the field 
width of 254 you are also maximizing the size of the .dbf file because it 
reserves the same fixed amount of disk space for each cell.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: matteo <matteo.ghe...@gmail.com> 
Lähetetty: perjantai 8. lokakuuta 2021 12.29
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi>; Even 
Rouault <even.roua...@spatialys.com>; gdal-dev@lists.osgeo.org
Aihe: Re: [gdal-dev] ogr2ogr changes field length

Hi Jukka,

works perfectly, thanks!

so no default options to impose the field length but it is alterable after

Cheers!

Matteo
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to