[mapserver-users] TYPE UNION and STYLEITEM

Tamas Szekeres szekerest at gmail.com
Tue May 3 13:31:48 EDT 2011


2011/5/3 Christy Nieman <cnieman at dmsolutions.ca>

>
> However, if I have styling in the source layers (i.e. layer_1_for_union and
> layer_2_for_union) and use STYLEITEM "AUTO" in the union layer, the two
> source layers must have STATUS DEFAULT for anything to show up (which, I
> think, causes them to be drawn twice?).
>
> Am I missing something with how UNIONs and STYLEITEM "AUTO" work?  Or is
> this how it was designed?
>
>
Christy,

The UNION layer should show the features from the source layers regardless
of their STATUS setting, so all of the features from the sources should be
rendered by default. A new attribute (Union:SourceLayerVisible) has been
added to the union layer so you can set up a FILTER expression to display
the features from only the "visible" sources if required. The most common
setting is to disable the visibility of the source layers (by setting the
STATUS of the layers or classes to 'off') to avoid the feature duplication.

Best regards,

Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110503/83b54767/attachment.html


More information about the mapserver-users mailing list