On Thu, May 3, 2012 at 9:00 AM, Klemm, Stephan - LIST <
stephan.kl...@list.smwa.sachsen.de> wrote:

>  Hi GS Friends,****
>
> ** **
>
> i have an SLD File with more as 10 rules. ****
>
> My Problem is that geoserver ignored the order of drawing. I thought the
> reading of SLD is from bottom to top?
>

Nope, it's loading the data one feature at a time and apply all the rules
on each feature in order:
that is, load feature1, apply r1, r2, r3... load feature2, apply r1, r2, ...

If you want them to be z-ordered instead you will have to use multiple
feature type styles, each one
having a separate rule. Mind, don't overuse that, GeoServer will still read
features just once
and create N drawing surfaces to paint the different feature type styles,
meaning you're multiplying
your memory requirements by the number of FTS you're using

See this example in the SLD cookbook:
http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/lines.html#line-with-border

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
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