<div dir="ltr">Mateusz,<br><br>Thanks for your answer. As Tim said, I need to access all members of the OGRStyleTable for listing them in a GUI.<br>I think maybe it should exist an interface for getting a list of all style names and definitions (a char**, for example).<br>
Best regards,<br><br>Alberto<br><br><div class="gmail_quote">2008/9/11 Mateusz £oskot <span dir="ltr">&lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alberto Pérez Cassinelli pisze:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, I&#39;m getting an OGRStyleTable from an OGRDataSource.<br>
My problem is that I need to access all members of this OGRStyleTable (that<br>
is all style definitions and names) to store them in a data structure of<br>
type string vector,<br>
</blockquote>
<br></div>
Alberto,<br>
<br>
Why you need to access private elements of class.<br>
You should not even know they exist.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
but I don&#39;t find any method to do it sequentially (I<br>
can&#39;t read one by one because I don&#39;t know their names).<br>
</blockquote>
<br></div>
See section 3 for usage example<br>
<br>
<a href="http://home.gdal.org/projects/opengis/ogr_feature_style_008.html" target="_blank">http://home.gdal.org/projects/opengis/ogr_feature_style_008.html</a><br>
<br>
It explains how to read styles sequentially.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In short I need access to OGRStyleTable::m_papszStyleTable.<br>
</blockquote>
&gt; Anyone know how to do this?<br>
<br></div>
I suppose rationale of your concept is bad. You should not neet to access it.<br>
<br>
Best regards,<br><font color="#888888">
-- <br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
Charter Member of OSGeo, <a href="http://osgeo.org" target="_blank">http://osgeo.org</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> Ing. Alberto Pérez Cassinelli<br>SUR Emprendimientos Tecnológicos<br><br>Ing. Huergo 1189 (C1007AOL)<br>Ciudad de Buenos Aires, Argentina<br>Tel. +54 (11) 5811-4552 ext. 107<br>
<a href="mailto:apc@suremptec.com.ar">apc@suremptec.com.ar</a><br><a href="http://www.suremptec.com">www.suremptec.com</a><br>
</div>