[gdal-dev] DBF handling

Uffe Kousgaard uffe at routeware.dk
Fri Jan 4 02:37:57 PST 2013


When DBF files has numeric fields with values > 2GB, processing fails 
and all values come out as -2147483648.

My current work-around is manually changing the fields from Numeric to 
Char (changing the header of the DBF), but it is really an ugly hack and 
spaces for padding are wrong (numeric fields are right-aligned, while 
char-fields are left-aligned internally).

It would be nice if at least int64 was used for integers in OGR, rather 
than int32. Large integers are typically used as identifiers in 
databases such as TomTom, OSM etc.

Has this been reported before?


Regards
Uffe Kousgaard



More information about the gdal-dev mailing list