On Fri, 12 Jun 2015, Even Rouault wrote:

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

OK, thanks - I though that there might have been something in autotests.

Best wishes,

Roger


Even




--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: [email protected]

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to