铁路样式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>

转载自:https://blog.csdn.net/longshengguoji/article/details/50697680

You may also like...