Instantly share code, notes, and snippets.

Embed
What would you like to do?
GeoServer SLD For ABS Meshblocks landuse
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
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">
<NamedLayer>
<Name>ASB_Meshblocks</Name>
<UserStyle>
<Title>landuse_style</Title>
<FeatureTypeStyle>
<Rule>
<Name>parkland</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Parkland</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#00AA00</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>farm</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Agricultural</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#886C56</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>comm</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Commercial</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#FFB4DF</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>edu</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Education</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#FFF5BF</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>hosp</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Hospital/Medical</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#00AA00</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#FF3030</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>res</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Residential</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#898889</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>non-usual-res</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Nousualresidence</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#A718FF</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>transport</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>MB_CAT11</ogc:PropertyName>
<ogc:Literal>Transport</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#00AA00</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#14FFD4</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment