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?

Would be very happy to receive an idea, thanks.

Lisa
-- 
View this message in context: 
http://old.nabble.com/Attribute-based-color-for-polygon-features-tp30395091p30395091.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


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