[Gdal-dev] How to get feature style from shapefile

Frank Warmerdam fwarmerdam at gmail.com
Mon Feb 28 10:26:07 EST 2005


On Mon, 28 Feb 2005 18:16:45 +0300, Oleg Semykin <oss-dev at rambler.ru> wrote:
> Hi all!
> 
> I have a problem ....
> 
> I can't get style of feature when parsing *.shp/dbf/shx file
> 
> OGRFeature->GetStyleString
> <http://gdal.org/ogr/classOGRFeature.html#a46> () returns NULL
> 
> Does anybody know another method to obtain feature style definition?

Oleg, 

Shapefiles have no built-in styling information so GetStyleString()
returns NULL.  In fact, I think only mapinfo and DGN formats
currently return styling information in OGR. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
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