[gdal-dev] problem on function "OGR_FD_GetName"
Peter J Halls
P.Halls at york.ac.uk
Thu Jun 17 03:50:34 EDT 2010
Randy,
I do not use s57 data, however I have written a number of programs which use
OGR_FD_GetName ... and it has always returned the feature name, if set, or null
for me. Feature, as opposed to Layer, names seem quite uncommon, however;
although I generally set feature names when creating data objects, I have rarely
encountered them on input from other sources. I have never investigated whether
this is a failure in OGR to transmit the name or whether my presumption that
there was no name to transmit is correct.
I'm not sure how much that helps,
Peter
randyqiu wrote:
> Hi Chaitanya,
> Thanks for your quick response!
> I use this function in parse a s57 file(*.000). In this format file,I
> think the layer-name in OGR should be like this:
> berths,bridge,canals...
> which to some extend,is as same as a feature-name. But now I'm not sure
> whether I understand this concept right or not?
> In my application,OGR_FD_GetName()returns:
> DSID
> Point
> Line
> Area
> Meta
>
> I'd like to know whether this function works fine or not? If yes, how
> should I get a feature's name?
> Thanks a lot!
> Best regards,
> Randy
>> OGR_FD_GetName() returns the name of the feature definition set during
>> it's creation. It doesn't have to be unique and doesn't represent the
>> object type or geometry type. It is not affected by any environment
>> variables.
>>
>> On Thu, Jun 17, 2010 at 11:53 AM, randyqiu <randyqiuxy at hotmail.com>
>> wrote:
>> Hi list,
>> I reinstalled my OS (Ubuntu10.04) recently and now the
>> OGR_FD_GetName
>> function results in "layername" with
>> "point,Line,Area,Meta",but I
>> believe this function could get a layer's object name but not
>> its
>> geometry type.
>> I'm not sure the problem exist in environment variable or not
>> and, if
>> so, what are they?
>> Best regards
>> Randy
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>>
>>
>> --
>> Best regards,
>> Chaitanya kumar CH.
>> /tʃaɪθənjə/ /kʊmɑr/
>> +91-9494447584
>> 17.2416N 80.1426E
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
--------------------------------------------------------------------------------
Peter J Halls, GIS Advisor, University of York
Telephone: 01904 433806 Fax: 01904 433740
Snail mail: Computing Service, University of York, Heslington, York YO10 5DD
This message has the status of a private and personal communication
--------------------------------------------------------------------------------
More information about the gdal-dev
mailing list