Guys, I have the following SLD that is just not rendering correctly. 

 

Can someone look over this and advise if this does not make any sense.

 

Cheers, Brad.

 

<?xml version="1.0" encoding="UTF-8"?><StyledLayerDescriptor version="1.0.0"
xmlns="http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"><NamedLayer>

<Name>undefined</Name>

<UserStyle>

<Title>braddles tester7</Title>

<Name>braddles tester7</Name>

<FeatureTypeStyle>

<Rule>

              <Name>Stress Between 30% and 80%</Name>

              <Filter>

                             <And>

                                           <And>

<!-make sure that the attributes are not zero to avoid zero divide -->

 
<PropertyIsGreaterThan>

 
<Mul>

 
<PropertyName>median_tot_hhd_inc_weekly</PropertyName>

 
<Literal>4.33333333</Literal>

 
</Mul>

 
<Literal>0.0</Literal>

 
</PropertyIsGreaterThan>

 
<PropertyIsGreaterThan>

 
<PropertyName>median_mortgage_repay_monthly</PropertyName>

 
<Literal>0.0</Literal>

 
</PropertyIsGreaterThan>

                                           <\And>

                                           <And>

                                                          <!-given no zero
divides, include all polygons that have a mortgage stress greater than 30%
AND less than 80%-->

 
<PropertyIsGreaterThanOrEqualTo>

 
<Mul>

 
<Div>

 
<PropertyName>median_mortgage_repay_monthly</PropertyName>

 
<Mul>

 
<PropertyName>median_tot_hhd_inc_weekly</PropertyName>

 
<Literal>4.33333333</Literal>

 
</Mul>

 
</Div>

 
<Literal>100</Literal>

 
</Mul>

 
<Literal>30</Literal>

 
</PropertyIsGreaterThanOrEqualTo>

 
<PropertyIsLessThanOrEqualTo>

 
<Mul>

 
<Div>

 
<PropertyName>median_mortgage_repay_monthly</PropertyName>

 
<Mul>

 
<PropertyName>median_tot_hhd_inc_weekly</PropertyName>

 
<Literal>4.33333333</Literal>

 
</Mul>

 
</Div>

 
<Literal>100</Literal>

 
</Mul>

 
<Literal>80</Literal>

 
</PropertyIsLessThanOrEqualTo>

                                           </And>

                             </And>

              </Filter>

 

              <PolygonSymbolizer>

                             <Fill>

                                           <CssParameter
name='fill'>#FF0000</CssParameter>

                                           <CssParameter
name='fill-opacity'>1</CssParameter>

                             </Fill>

              </PolygonSymbolizer>

              <PolygonSymbolizer>

                             <Stroke>

                                           <CssParameter
name='stroke'>#000000</CssParameter>

                                           <CssParameter
name='stroke-width'>1</CssParameter>

                                           <CssParameter
name='stroke-opacity'>1</CssParameter>

                             </Stroke>

              </PolygonSymbolizer>

</Rule>

</FeatureTypeStyle>

</UserStyle>

</NamedLayer>

</StyledLayerDescriptor>

 

Brad Spencer

Managing Director



 <http://www.numaps.com.au/> http://www.numaps.com.au/

mob: 0404 841 131

 <https://www.facebook.com/pg/numaps.com.au/photos/?ref=page_internal>
BradArt

 

 

 

 

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to