[Gdal-dev] terchnical query

chenxuexia xuex_chen at 126.com
Sun Aug 19 06:14:38 EDT 2007


    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?2.  how can i reading field of this type into a CString object?3.  which types can be readed  by GetFieldAsString() function?  ////////////////////////////////// //Codes below are mine:   if( FieldType == OFTIntegerList || FieldType == OFTRealList )
   {// how to put a OFTIntegerList object like "5.26521E-06"into a CString object? 
    strField.Format("%e",poFeature->GetFieldAsString(j));  //ERROR!
   }
   else
    strFiled = (CString)poFeature->GetFieldAsString(j); 
   strFeatAttrib.push_back(strFiled);//strFeatAttrib is CString array //////////////////////////////////////   thanks a lot!   Best regards,                                                                  chenchen,                                                            8-19-2007,Lanzhou,China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070819/a33a01b7/attachment.html


More information about the Gdal-dev mailing list