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
On 23 January 2014 11:16, Sergey Kolosov <[email protected]> wrote:
> I have an SLD like this:
>
> <FeatureTypeStyle>
> <Rule>
> <Filter>
> <PropertyIsEqualTo>
> <PropertyName>S</PropertyName>
> <Literal>1</Literal>
> </PropertyIsEqualTo>
> </Filter>
> <PolygonSymbolizer>
> <Fill>
> <CssParameter name="fill">#ff0000</CssParameter>
> </Fill>
> </PolygonSymbolizer>
> </Rule>
> <Rule>
> <Filter>
> <or>
> <PropertyIsEqualTo>
> <PropertyName>S</PropertyName>
> <Literal>8</Literal>
> </PropertyIsEqualTo>
> <PropertyIsEqualTo>
> <PropertyName>S</PropertyName>
> <Literal>9</Literal>
> </PropertyIsEqualTo>
> </or>
> </Filter>
> <PolygonSymbolizer>
> <Fill>
> <CssParameter name="fill">#0000ff</CssParameter>
> </Fill>
> </PolygonSymbolizer>
> </Rule>
> </FeatureTypeStyle>
>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
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.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users