[Gdal-dev] ogr2ogr: double -> integer conversion problem
Frank Warmerdam
warmerdam at pobox.com
Fri Mar 10 13:40:51 EST 2006
mirza wrote:
> Frank Warmerdam wrote:
>> My decision some time ago was to pretend that these are doubles rather
>> than
>> deal with adding some sort of 64bit integer type to shapelib.
>>
>
> Frank,
>
> I think it should be converted to int64 because many big data providers
> (like TeleAtlas) uses this for element ID and if you handle it as double
> you get something like 1.22434E15, which is not nice ID at all. Of
> course, it is possible to tweak how double is formated but it is more
> complex then simply converting it to int64.
>
> I created shp2mif utility today to deal with this (if anyone needs it I
> can send it, it is only row converter, no coord. sys. transfers).
Mirza,
Well, I agree that OGR *ought* to support 64 bit integer values as field
attributes. What is less clear is when or how that will occur.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list