[gdal-dev] Accessing OGRStyleTable
Alberto Pérez Cassinelli
a.p.cassinelli at gmail.com
Fri Sep 12 10:31:34 EDT 2008
Mateusz,
Thanks for your answer. As Tim said, I need to access all members of the
OGRStyleTable for listing them in a GUI.
I think maybe it should exist an interface for getting a list of all style
names and definitions (a char**, for example).
Best regards,
Alberto
2008/9/11 Mateusz Łoskot <mateusz at loskot.net>
> Alberto Pérez Cassinelli pisze:
>
>> Hi, I'm getting an OGRStyleTable from an OGRDataSource.
>> My problem is that I need to access all members of this OGRStyleTable
>> (that
>> is all style definitions and names) to store them in a data structure of
>> type string vector,
>>
>
> Alberto,
>
> Why you need to access private elements of class.
> You should not even know they exist.
>
> but I don't find any method to do it sequentially (I
>> can't read one by one because I don't know their names).
>>
>
> See section 3 for usage example
>
> http://home.gdal.org/projects/opengis/ogr_feature_style_008.html
>
> It explains how to read styles sequentially.
>
> In short I need access to OGRStyleTable::m_papszStyleTable.
>>
> > Anyone know how to do this?
>
> I suppose rationale of your concept is bad. You should not neet to access
> it.
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
>
--
Ing. Alberto Pérez Cassinelli
SUR Emprendimientos Tecnológicos
Ing. Huergo 1189 (C1007AOL)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 5811-4552 ext. 107
apc at suremptec.com.ar
www.suremptec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080912/e1a171ca/attachment.html
More information about the gdal-dev
mailing list