一、基本样式
点(se:PointSymbolizer)
线(se:LineSymbolizer)
面(se:PolygonSymbolizer)
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<se:Name>Point</se:Name>
<UserStyle>
<se:Name>Point</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>hexagon</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#54b04a</se:SvgParameter>
<se:SvgParameter name="fill-opacity">0.3</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#3d8035</se:SvgParameter>
<se:SvgParameter name="stroke-width">1</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>16</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
1.形状(点符号才有)
<se:WellKnownName>hexagon</se:WellKnownName>
2.填充
<se:Fill>
<se:SvgParameter name="fill">#54b04a</se:SvgParameter>
<se:SvgParameter name="fill-opacity">0.3</se:SvgParameter>
</se:Fill>
3.边框
<se:Stroke>
<se:SvgParameter name="stroke">#3d8035</se:SvgParameter>
<se:SvgParameter name="stroke-width">1</se:SvgParameter>
</se:Stroke>
4.大小
<se:Size>16</se:Size>
还有好多好多~ 不写了
大家自行去QGIS调样式,然后导出样式为sld格式,直接复制就行了
然后根据需要慢慢调就好了
标签:配置图,样式,0.3,geoserver,SLD,格式,se From: https://www.cnblogs.com/echohye/p/16652782.html