[Geoserver-users] SLD OR-filter and symbolizer

I have an SLD like this:

S 1 #ff0000 S 8 S 9 #0000ff

I expect two color, but see only one - blue. If i swap these two rules (filter with “or” goes first), then all works as expected. Can anyone tell me why is that?

Hi,
It should work both ways.
One thing I note - The or - Try upper casing the O (so “Or”). These things can be case sensitive (or typically are for me, but I’m using SLD 1.1).

I can’t see anything else it could be, but I may still be missing something.

Regards,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 23 January 2014 11:16, Sergey Kolosov <sergey.kolosof@anonymised.com> wrote:

I have an SLD like this:

S 1 #ff0000 S 8 S 9 #0000ff

I expect two color, but see only one - blue. If i swap these two rules (filter with “or” goes first), then all works as expected. Can anyone tell me why is that?


CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Fri, Jan 24, 2014 at 5:23 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi,
It should work both ways.
One thing I note - The or - Try upper casing the O (so "Or"). These things
can be case sensitive (or typically are for me, but I'm using SLD 1.1).

I confirm it has to be Or, otherwise the filter in question will simply be
ignored.
Use the "validate" button to know if a style is valid before submitting it

Cheers
Andrea

--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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