I'd have to agree with cheesybiscuits on this...  The SLD/SE spec
explicitly allows for both multiply FeatureTypeStyles and multiple Rules to
apply to any given feature being rendered.  (See SE 1.1 section 10.3:

Filters used in different Rules applicable to the same FeatureTypeStyle are
allowed to overlap in terms of the features selected by each rule.


However, using multiple Rules per feature in a single FeatureTypeStyle may
not produce the results intended, since all the rules for a feature are
rendered before the next feature is drawn.  If the desire is to produce
something like "cased roads", then multiple FeatureTypeStyles should be
used instead, since this will avoid later features from overwriting earlier
ones (which tends to produce odd-looking line joins).

On Tue, May 22, 2012 at 12:02 PM, cheesybiscuits
<thomaschrist...@gmail.com>wrote:

> Christian, I feel we're approaching an 'agree to disagree', but I'm
> curious -
> where are the guidelines suggesting that SLDs should only contain one
> active
> style at any scale?
>
> The specification permits multiple FeatureTypeStyle elements for a good
> reason - so that you can have multiple 'layers' within the resulting image
> and you can control how they are positioned relative to each other. From
> the
> specification (1.1.0):
>
> "Note that there is no restriction against a single UserStyle from
> including
> multiple FeatureTypeStyles that reference the same FeatureTypeName. This
> case does not create an exception in the rendering semantics, however,
> since
> a map styler is expected to process all FeatureTypeStyles in the order that
> they appear, regardless, plotting one instance over top of another"
>
> This suggests that using FeatureTypeStyle elements to control ordering is
> in
> fact part of the standard. The specification even highlights the importance
> of execution order. Given that I can find no mention of a one active style
> restriction I assume that this approach is, in fact, convention.
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/SLD-drawing-order-tp4948595p4976193.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to