Aneesh,<br><br>Actually, I just reviewed the driver code. It&#39;s not documented.<br><br>I don&#39;t know enough to suggest any format for efficiently storing style info. But you can start with MapInfo, KML and DXF.<br><br>
<div class="gmail_quote">On Thu, Jan 5, 2012 at 6:06 PM, Aneesh Muralidharan <span dir="ltr">&lt;<a href="mailto:symonando@gmail.com">symonando@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Chaithanya,<br><br>Ahhh that explains it ! Thanks a lot. By the way where do I find out these information (like DXF driver doesn&#39;t support style table), as in where is it documented ?<br><br>And can you suggest me some other vector format that OGR loads by default, which has style information ? I was using SHP till now, but then it doesn&#39;t have the style information at all right. Also it will be great if you can point me to some place where I can find some free samples as well.<div class="HOEnZb">
<div class="h5"><br>

<br><div class="gmail_quote">On Thu, Jan 5, 2012 at 5:51 PM, Chaitanya kumar CH <span dir="ltr">&lt;<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>&gt;</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>I don&#39;t know if the DXF format maintains a default style or a style table but OGR&#39;s DXF driver doesn&#39;t support layer&#39;s style table.<div><div><br><br><div class="gmail_quote">

On Thu, Jan 5, 2012 at 5:30 PM, Aneesh Muralidharan <span dir="ltr">&lt;<a href="mailto:symonando@gmail.com" target="_blank">symonando@gmail.com</a>&gt;</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">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&#39;m getting an empty table :(<br>



<br>By the way I&#39;m trying to read a simple DXF file. <br><div><div><br>

<div class="gmail_quote">On Thu, Jan 5, 2012 at 4:57 PM, Chaitanya kumar CH <span dir="ltr">&lt;<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>&gt;</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&#39;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>

<div><br><br><div class="gmail_quote">
On Thu, Jan 5, 2012 at 4:55 PM, Chaitanya kumar CH <span dir="ltr">&lt;<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>&gt;</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">&lt;<a href="mailto:symonando@gmail.com" target="_blank">symonando@gmail.com</a>&gt;</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&#39;m new to OGR/GDAL and I&#39;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&#39; 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&#39;s pen can be either one of its own or dependent on the layer ). The OGRFeatureDefn for the OGRLayer doesn&#39;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>
</div></div></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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>