MapServer 5.0.0 release plan ... and release of beta1

Daniel Morissette dmorissette at MAPGEARS.COM
Fri Jul 27 12:15:10 PDT 2007


Gregor Mosheh wrote:
>> - MS RFC 19: Added Style and Label attribute binding
> 
> What does this mean exactly?
> 

Excerpt from the MIGRATION_GUIDE.TXT, now online at:
http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/migration_guide_410_50/


----------------------------------------

Attribute Bindings: In an effort to stem the tide of keyword overload
and add functionality MapServer 5.0 supports a new method of binding
feature attributes to STYLE and LABEL properties. In the past keywords
like ANGLEITEM or LABELSIZEITEM were used, now you denote the attribute
in the context of the property being bound. For example, to bind an
attribute to a label size you'd do:

LABEL
   ...
   SIZE [mySizeItem]
END

The []'s denote a binding (as with logical expressions). The following
keywords are no longer supported and their presence will throw an error:

Layer: LABELANGLEITEM, LABELSIZEITEM
Style: ANGLEITEM, SIZEITEM

The following properties can accept bindings:

Style: angle, color, outlinecolor, size, symbol
Label: angle, color, outlinecolor, size, font, priority

Colors may be given as a hex value (e.g. #FFFFFF) or an RGB triplet
(e.g. 255 255 255).

----------------------------------------

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the MapServer-users mailing list