Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Created January 13, 2011 14:37
Show Gist options
  • Save waynegraham/777944 to your computer and use it in GitHub Desktop.
Save waynegraham/777944 to your computer and use it in GitHub Desktop.
Template for SLD Files
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.20"
xmlns="http://www.opengis.net/sld"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.20/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name></Name>
<UserStyle>
<Name></Name>
<Description></Description>
<IsDefault>1</IsDefault>
<FeatureStyle>
<Rule>
<Name></Name>
<Description></Description>
<PolygonSymbol>
<Name>Symbol</Name>
<Description>
<Title>Symbol Title</Title>
<Abstract>Abstrace</Abstract>
</Description>
<Geometry>
<ogc:PropertyName>GEOMETRY</ogc:PropertyName>
</Geometry>
<Fill>
<SvgParameter name="fill">#96C3F5</SvgParameter>
</Fill>
</PolygonSymbol>
</Rule>
</FeatureStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment