答复: Re: [gdal-dev] How to use OGRField and what does its contents mean?

Randy randyqiuxy at hotmail.com
Thu Sep 24 21:21:23 EDT 2009


Frank, Chaitanya,
Thanks a lot for giving me so much useful info!!

-----邮件原件-----
发件人: Frank Warmerdam [mailto:warmerdam at pobox.com] 
发送时间: 2009年9月24日 23:38
收件人: Randy
抄送: GDAL/OGR mailing list
主题: [?? Probable Spam] Re: [gdal-dev] How to use OGRField and what does its contents mean?

Chaitanya kumar CH wrote:
> Randy,
> 
> Perhaps the info you are looking for can be found under OGRFieldDefn
> instead of OGRField at http://www.gdal.org/ogr/hierarchy.html

Randy,

I would add there is a general discussion of the OGR data model at:

   http://www.gdal.org/ogr/ogr_arch.html

And an introduction to writing applications on the API at:

   http://www.gdal.org/ogr/ogr_apitut.html

Normally you would not interact with OGRField directly, instead
using the OGRFeature methods like GetFieldAsString() or
GetFieldAsInteger() to fetch the values.  As Chaitanya mentions,
the OGRFeatureDefn (fetched from the OGRLayer using GetDefnRef())
has info on what the fields names and types are.

In the case of S-57, the S-57 driver page also has some
useful background:

   http://www.gdal.org/ogr/drv_s57.html

> 2009/9/24 Randy <randyqiuxy at hotmail.com>:
>> Hi everyone,
>>
>> Sorry to interrupt you!
>>
>> I’m a new boy in OGR and s_57. I feel that there is no very explicit
>> introduction about OGR’s details. Now, I don’t know where should I use
>> OGRFiled since I don’t understand its details such as Set、Binary、Date in
>> S_57. Anyone can explain it for me?  I read OGR’s open source code, but it
>> doesn’t seem like it gives us enough information and notation.
>>
>> Besides that, anyone could tell me where I can find the more explicit
>> introduction about OGR, I mean almost each part of the OGR?
>>
>> Best regards,
>>
>> Randy
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
> 
> 
> 


-- 
---------------------------------------+--------------------------------------
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    | Geospatial Programmer for Rent




More information about the gdal-dev mailing list