An SLD like the one attached to the JIRA is a valid SLD for GeoServer, and it is also correctly rendered by WMS.
If you try to put this SLD on the SLD editor of GeoServer and then clicking on “Validate” the geoserver strips the contents of the <se:Fill> .
So from:
<se:Fill>
<se:SvgParameter name=“fill”>#f7fbff</se:SvgParameter>
</se:Fill>
It goes to essentially just: <se:Fill/>
<?xml version=“1.0” encoding=“UTF-8”?>
<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version=“1.1.0” xmlns:xlink=“http://www.w3.org/1999/xlink” xsi:schemaLocation=“http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd” xmlns:se=“http://www.opengis.net/se”>
<NamedLayer>
<se:Name>bz_floodrisk_nri_</se:Name>
<UserStyle>
<se:Name>bz_floodrisk_nri_</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Very Low Risk</se:Name>
<se:Description>
<se:Title>Very Low Risk</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>2</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#f7fbff</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Low Risk</se:Name>
<se:Description>
<se:Title>Low Risk</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>2</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#d7e6f4</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Low Risk</se:Name>
<se:Description>
<se:Title>Low Risk</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>4</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#afd1e7</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Medium Risk</se:Name>
<se:Description>
<se:Title>Medium Risk</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>4</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>5</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#72b2d7</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>High Risk</se:Name>
<se:Description>
<se:Title>High Risk</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>5</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>6</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#3d8dc3</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Very High Risk</se:Name>
<se:Description>
<se:Title>Very High Risk</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>6</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>7</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#1562a9</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Normally inundated</se:Name>
<se:Description>
<se:Title>Normally inundated</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
<ogc:And>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>7</ogc:Literal>
</ogc:PropertyIsGreaterThan>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>FLOODRISK1</ogc:PropertyName>
<ogc:Literal>8</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name=“fill”>#08306b</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
|