[gdal-dev] help:About Getting StyleString

Frank Warmerdam warmerdam at pobox.com
Sat Aug 29 12:34:48 EDT 2009

Randyqiu wrote:
> Hi,
>   I have been in trouble with getting S_57 format(.000) files=A1=AF=20
> =A1=B0styleString=A1=B1.
>  According to the article named =A1=B0OGR - Feature Style Specification=
> <http://www.gdal.org/ogr/ogr_feature_style.html>=A1=B1, I wanted to get=
> information about =A1=B0drawing tools=A1=B1 such as color=A1=A2pen widt=
h by using some=20
> functions as follows:
> * OGRLayer::GetStyleTable ()**=A1=A2**OGRFeature::GetStyleString()**=A1=
> **OGRDataSource:: GetStyleTable()*
> But they all returned nothing(0x000000) which means these functions wer=
> useless and didn=A1=AFt get what I want .
> Now, can you tell me the reason? Is it because I used the wrong functio=
> or anything else? Can you give me an instance about getting the=20
> =A1=B0StyleString=A1=B1 or =A1=B0drawing tools=A1=B1 information?


I'm afraid that the S57 driver does not provide style support.  In fact,
I believe only two or three drivers do support styles.  In the case of S5=
format the style is not really intrinsic in the file though there are
standards  (S52) defined which indicate how S-57 data ought to be display=

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox=
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list