Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created March 29, 2010 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/348351 to your computer and use it in GitHub Desktop.
Save tmcw/348351 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor version="1.0.0"
xmlns:sld="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<sld:NamedLayer>
<sld:Name>LocalStyle</sld:Name>
<sld:UserStyle>
<sld:Name>Attribute Filter Styler</sld:Name>
<sld:Title>Attribute Filter Styler</sld:Title>
<sld:FeatureTypeStyle>
<sld:Name>attribute filter type</sld:Name>
<sld:Title>attribute filter type</sld:Title>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>
<!-- Attribute filters -->
<sld:Rule>
<sld:PolygonSymbolizer>
<sld:Fill>
<sld:CssParameter name="fill">
<ogc:Literal>#000000</ogc:Literal>
</sld:CssParameter>
</sld:Fill>
</sld:PolygonSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:Name>rulePropertyIsEqualTo</sld:Name>
<sld:Title>rulePropertyIsEqualTo</sld:Title>
<sld:Abstract>rulePropertyIsEqualTo</sld:Abstract>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>Sundial, Tazacorte Beach ,La Palma island</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<sld:PolygonSymbolizer>
<sld:Fill>
<sld:CssParameter name="fill">
<ogc:Literal>#FF00FF</ogc:Literal>
</sld:CssParameter>
</sld:Fill>
</sld:PolygonSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment