Selon Roger Bivand <[email protected]>:

> 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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to