[mapserver-dev] Add support for using all OGR style parameters

Tamas Szekeres szekerest at gmail.com
Tue Jan 15 00:48:25 PST 2013

Hi All,

Currently the OGR driver supports to get only of the various OGR label
style parameters as special attributes (ie. OGR:LabelText or OGR_LabelAngle)

We would like to use further style parameters in mapserver, so I've added a
sample implementation here:


This implementation provides support to use the following special attributes


where [paramId] is an integer value according to
the OGRSTLabelParam, OGRSTBrushParam, OGRSTPenParam, OGRSTSymbolParam
enumerations in ogr_core.h<http://www.gdal.org/ogr/ogr__core_8h-source.html>

With this addition we can easily map feature styles (ie mapinfo styles) to
classes for example by using *CLASSITEM [OGR:BrushParam2]* which refers to
the mapinfo brush id.

The proposed  change seems relatively small to me, does anyone object to
implement this change in master branch?

Issue was added to github to track this change:

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20130115/15667b84/attachment.html>

More information about the mapserver-dev mailing list