Hi Chaithanya,<br><br>Thanks for the quick reply<br><br>About the style table, I did try to use the layer style table, but I'm getting an empty table :(<br><br>By the way I'm trying to read a simple DXF file. <br><br>
<div class="gmail_quote">On Thu, Jan 5, 2012 at 4:57 PM, Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com">chaitanya.ch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A layer's style table can be accessed using OGRLayer::GetStyleTable() [1].<br><br>[1]: <a href="http://www.gdal.org/ogr/classOGRLayer.html" target="_blank">http://www.gdal.org/ogr/classOGRLayer.html</a><div class="HOEnZb">
<div class="h5"><br><br><div class="gmail_quote">
On Thu, Jan 5, 2012 at 4:55 PM, Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Aneesh,<br><br>A layer can have a style table that stores a set of styles that can be referred by individual features. Usually the style table has a default style.<br><br>Its usage is explained in the same page as the OGR Feature Style Specification.<br>
<br><div class="gmail_quote"><div><div>On Thu, Jan 5, 2012 at 3:45 PM, Aneesh Muralidharan <span dir="ltr"><<a href="mailto:symonando@gmail.com" target="_blank">symonando@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
Hi,<br><br>I'm new to OGR/GDAL and I'm trying to read style information of vectors using the OGR C++ API. I followed the documentation available here <a href="http://www.gdal.org/ogr/ogr_feature_style.html" target="_blank">http://www.gdal.org/ogr/ogr_feature_style.html</a>. I have managed to get the pen information of the glyphs' in vector file successfully.<br>
<br>The problem is that, it is unclear that from where can I figure out the layer style specification. i.e the global style for the layer ( assuming each glyph's pen can be either one of its own or dependent on the layer ). The OGRFeatureDefn for the OGRLayer doesn't seem to have this information.<br>
<br>Also is there any detailed explanation of the API somewhere with some sample code snippets ? (for the feature-style api. For read/write I know there is <a href="http://www.gdal.org/ogr/ogr_apitut.html" target="_blank">http://www.gdal.org/ogr/ogr_apitut.html</a>)<br>
<br>Hoping for a quick response<br><br>Thanks and regards,<span><font color="#888888"><br>Aneesh Muralidharan<br>
</font></span><br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br>
<br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>
</div></div></blockquote></div><br>