SLD for contour data

See other post for explanation:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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"
xsi:schemaLocation="http://www.opengis.net/sld

http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>contours</Name>
<UserStyle>
<Title>contours</Title>
<Abstract>Contour lines with index</Abstract>
<FeatureTypeStyle>

<Rule>

<Name>rule01</Name>
<Title>2 ft contours</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_10</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>1</MinScaleDenominator>
<MaxScaleDenominator>4799</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#ffd700</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule02</Name>
<Title>10 ft contours index</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_10</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>1</MinScaleDenominator>
<MaxScaleDenominator>4799</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#D95F02</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule03</Name>
<Title>10 ft contours</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_10</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>4800</MinScaleDenominator>
<MaxScaleDenominator>7199</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#ffd700</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule04</Name>
<Title>50 foot contours index</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_50</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>4800</MinScaleDenominator>
<MaxScaleDenominator>7199</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#D95F02</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule05</Name>
<Title>20 ft contours</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_20</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>7200</MinScaleDenominator>
<MaxScaleDenominator>20999</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#ffd700</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule06</Name>
<Title>100 foot contours index</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_100</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>7200</MinScaleDenominator>
<MaxScaleDenominator>20999</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#D95F02</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule07</Name>
<Title>50 ft contours</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_50</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>21000</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#ffd700</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

<Rule>

<Name>rule08</Name>
<Title>250 foot contours index</Title>
<Abstract>Abstract</Abstract>

<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>div_250</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>

<MinScaleDenominator>21000</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator>

<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#D95F02</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linecap">
<ogc:Literal>butt</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-linejoin">
<ogc:Literal>miter</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>1</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
</Rule>

</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s