[Shapelib] Handling of Integers wider than 10 digits

Baumann, Konstantin Konstantin.Baumann at hpi.uni-potsdam.de
Wed May 16 06:35:05 PDT 2007


Hi!

I have filed the following bug ticket in the GDAL ticket system:
<http://trac.osgeo.org/gdal/ticket/1627>

In the function DBFGetFieldInfo() (dbfopen.c: 960) an original "Integer"
type is "cast" to the "Double" type, if the given field width of the
Integer is larger than 10.

I think, that this is not the optimal solution, since the precision of
doubles is also limited (~15-16 digits). I would suggest to use "String"
as target type instead, which can handle an "arbitrary" number of
digits. 

This problem occured during the import of some TeleAtlas shapefiles,
which use 15 or even 22 integer digits as object IDs, to identify
objects across different file sets...

Any comments?

Kind regards,
	Kosta




More information about the Shapelib mailing list