[gdal-dev] is there a vector testfile with Integer64 values?
Even Rouault
even.rouault at spatialys.com
Fri Jun 12 01:07:48 PDT 2015
Selon Roger Bivand <Roger.Bivand at nhh.no>:
> Hi,
>
> In adapting rgdal for GDAL 2.0.0, it would be useful to know that
> clamping, etc, and workarounds for integers in Integer64 fields that
> exceed INT_MAX or INT_MIN actually work. Which of the autotest vector
> files include Integer64 fields that test reading with Integer or String?
> The files I see mostly test error trapping, so an indication of where to
> look would be very valuable. Best with common drivers.
Roger,
you can simply try with
test.csvt:
Integer,Integer64
test.csv:
id,val
1,987654321
if you use GetFieldAsInteger(), it will be clamped to INT_MAX + a CE_Warning
if you use GetFieldAsString(), it will return "987654321" as expected
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list