On Wed, Dec 8, 2010 at 6:11 AM, lisa10 <[email protected]> wrote:
>
> Hello everybody
>
> I'm new in Geoserver and have a problem:
> I've got a polygon layer in Geoserver and would like to color the polygons
> using one of its attribute value.
>
> To do so I've created an SLD style containing various rules as follows:
>
> ===
>      <Rule>
>       <Name>house</Name>
>       <Title>house</Title>
>       <ogc:Filter>
>         <ogc:PropertyIsEqualTo>
>           <ogc:PropertyName>art_code</ogc:PropertyName>
>           <ogc:Literal>0</ogc:Literal>
>         </ogc:PropertyIsEqualTo>
>       </ogc:Filter>
>       <MaxScaleDenominator>100000</MaxScaleDenominator>
>       <PolygonSymbolizer>
>         <Fill>
>           <CssParameter name="fill">#FFB6C1</CssParameter>
>         </Fill>
>         <Stroke>
>           <CssParameter name="stroke">#000000</CssParameter>
>           <CssParameter name="stroke-width">0.5</CssParameter>
>         </Stroke>
>       </PolygonSymbolizer>
>     </Rule>
>
>     ...more rules...
> ===
>
> It's working more or less fine but when I preview the map and pan or zoom,
> the colors every now and then are changing inpredictably although for any
> attribute value there's exactly set one rule so there shouldn't be any
> confusions.
>
> Does anybody have an idea on what the problem could be?

I'd need to see the whole SLD to be sure, but I'm guessing that your
MaxScaleDenominator causing some of these rules to stop being
considered as you zoom out. Do you have an <ElseFilter /> rule in
there somewhere that might be catching these cases?

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to