[mapserver-dev] MapServer styles or symbols? What is the concept?

Tamas Szekeres szekerest at gmail.com
Wed May 30 02:22:04 PDT 2012

Hi Devs,

As of mapserver 6.0 many of the symbol parameters (such as line
patterns) have been moved to styles. Since I'm not sure about the
reason behind, could someone clarify how do we define what is a symbol
and what is a style in MapServer? Formerly I have been thinking that
the symbols should define the shape (like patterns for brushes and
lines, specify the truetype fonts etc) and the styles should define
the actual drawing attributes like colors and sizes. Since the changes
in Mapserver 6.0 this concept seems to be invalidated.

One of the most problematic effect with this concept is that we cannot
easily implement OGR auto styles in MapServer. Currentlly the OGR
driver maps the style id-s to symbols and we could define a separate
symbols for each style id to implement the MapInfo supported styles
(see attached). However with the recent approach we should rather map
the OGR style id-s to classes and styles to provide a similar effect.
Could someone suggest a reasonable solution?

Does MapServer capable to implement the MapInfo brush and line
patterns (see attached), or we would still require to think about
enhancements in the rendering engine to provide the same (or similar)

 Best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: brushstyles.png
Type: image/png
Size: 32468 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120530/3d75706e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linestyles.png
Type: image/png
Size: 18171 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120530/3d75706e/attachment-0003.png>

More information about the mapserver-dev mailing list