[Gdal-dev] terchnical query
Frank Warmerdam
warmerdam at pobox.com
Sun Aug 19 19:49:44 EDT 2007
chenxuexia wrote:
>
> hello,gdal teams.
> Now i begin to use gdal to develop a plugg-in for reading ArcGIS
> data. There's a field value showing like "2.3565E-06", and the field
> type is displayed as float in ArcCatolog£¬also displayed as figure
> while export to dBase. But when i reading it in gdal, the field type is
> "OFTIntegerList", i wanna know :
> 1. how and why do you store this "2.3565E-06" as an IntegerList?
Chenchen,
I cannot think of any reason an attribute on a shapefile
should be treated as an integer list. Is this a shapefile
dataset? Or perhaps SDE? E00? Arc/Info Binary Coverage?
> 2. how can i reading field of this type into a CString object?
GetFieldAsString() should be suitable, though for integer lists
it may be truncated if the list is long.
> 3. which types can be readed by GetFieldAsString() function?
GetFieldAsString() should do something reasonable for all field
types, though in some cases the result is truncated.
I think you will need to provide a sample dataset demonstrating
the issue. It might also be helpful to verify ogrinfo is
getting the same results you are finding.
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 OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list