geoserver 铁路样式 SLD

<?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>railway</Name>
<UserStyle>
<Title>railway</Title>
<Abstract>Default line style, 1 pixel wide blue</Abstract>

<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<Title>Blue Line</Title>
<Abstract>BLACK AND WHITE ONE BY ONE</Abstract>



<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#000000</ogc:Literal>
</CssParameter>

<CssParameter name="stroke-linejoin">
<ogc:Literal>round</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-opacity">
<ogc:Literal>1.0</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>4.0</ogc:Literal>
</CssParameter>

</Stroke>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#ffffff</ogc:Literal>
</CssParameter>

<CssParameter name="stroke-linejoin">
<ogc:Literal>round</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-opacity">
<ogc:Literal>1.0</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>3.0</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-dasharray">10 10</CssParameter>

</Stroke>
</LineSymbolizer>



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

[img]http://dl.iteye.com/upload/attachment/295108/508d1c84-8d0b-39dd-b2b2-2fdd21137608.jpg[/img]
转载自:https://blog.csdn.net/iteye_15538/article/details/81919837

You may also like...