Skip to content

Instantly share code, notes, and snippets.

@nboisteault
Created March 27, 2023 19:36
Show Gist options
  • Save nboisteault/e637436ddc158e5a5515f64c3dbd3859 to your computer and use it in GitHub Desktop.
Save nboisteault/e637436ddc158e5a5515f64c3dbd3859 to your computer and use it in GitHub Desktop.
test.sld
<?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:se="http://www.opengis.net/se" 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">
<NamedLayer>
<se:Name>sousquartiers</se:Name>
<UserStyle>
<se:Name>sousquartiers</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>C</se:Name>
<se:Description>
<se:Title>C</se:Title>
</se:Description>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsEqualTo>
<ogc:Function name="left">
<ogc:PropertyName>quartmno</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:Function>
<ogc:Literal>C</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#ca0003</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#232323</se:SvgParameter>
<se:SvgParameter name="stroke-width">1</se:SvgParameter>
<se:SvgParameter name="stroke-linejoin">bevel</se:SvgParameter>
</se:Stroke>
</se:PolygonSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment