Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-06 Thread Brian Case
Aneesh i believe the only driver that supports layer andf dataset style tables is the libkml driver Brian On Thu, 2012-01-05 at 18:06 +0530, Aneesh Muralidharan wrote: > Chaithanya, > > Ahhh that explains it ! Thanks a lot. By the way where do I find out > these information (like DXF driver do

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Chaitanya kumar CH
Aneesh, Actually, I just reviewed the driver code. It's not documented. I don't know enough to suggest any format for efficiently storing style info. But you can start with MapInfo, KML and DXF. On Thu, Jan 5, 2012 at 6:06 PM, Aneesh Muralidharan wrote: > Chaithanya, > > Ahhh that explains it !

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Aneesh Muralidharan
Chaithanya, Ahhh that explains it ! Thanks a lot. By the way where do I find out these information (like DXF driver doesn't support style table), as in where is it documented ? And can you suggest me some other vector format that OGR loads by default, which has style information ? I was using SHP

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Chaitanya kumar CH
Aneesh, I don't know if the DXF format maintains a default style or a style table but OGR's DXF driver doesn't support layer's style table. On Thu, Jan 5, 2012 at 5:30 PM, Aneesh Muralidharan wrote: > Hi Chaithanya, > > Thanks for the quick reply > > About the style table, I did try to use the l

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Aneesh Muralidharan
Hi Chaithanya, Thanks for the quick reply About the style table, I did try to use the layer style table, but I'm getting an empty table :( By the way I'm trying to read a simple DXF file. On Thu, Jan 5, 2012 at 4:57 PM, Chaitanya kumar CH wrote: > A layer's style table can be accessed using OG

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Chaitanya kumar CH
A layer's style table can be accessed using OGRLayer::GetStyleTable() [1]. [1]: http://www.gdal.org/ogr/classOGRLayer.html On Thu, Jan 5, 2012 at 4:55 PM, Chaitanya kumar CH wrote: > Aneesh, > > A layer can have a style table that stores a set of styles that can be > referred by individual featu

Re: [gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Chaitanya kumar CH
Aneesh, 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. Its usage is explained in the same page as the OGR Feature Style Specification. On Thu, Jan 5, 2012 at 3:45 PM, Aneesh Muralidharan wrote:

[gdal-dev] Reading OGRStyle information using C++

2012-01-05 Thread Aneesh Muralidharan
Hi, 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 http://www.gdal.org/ogr/ogr_feature_style.html. I have managed to get the pen information of the glyphs' in vector file successfully. The problem is that,