[gdal-dev] Accessing OGRStyleTable
Alberto Pérez Cassinelli
a.p.cassinelli at gmail.com
Fri Sep 12 10:31:34 EDT 2008
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).
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
>> is all style definitions and names) to store them in a data structure of
>> type string vector,
> 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
> 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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev