usa_ratio.sld
来自「电子地图服务器,搭建自己的地图服务」· SLD 代码 · 共 78 行
SLD
78 行
<StyledLayerDescriptor version="0.7.2">
<!-- a named layer is the basic building block of an sld document -->
<NamedLayer>
<Name>A Test Layer</Name>
<title>The title of the layer</title>
<abstract>
A styling layer used for the unit tests of sldstyler
</abstract>
<!-- with in a layer you have Named Styles -->
<UserStyle>
<!-- again they have names, titles and abstracts -->
<Name>bbox test</Name>
<!-- FeatureTypeStyles describe how to render different features -->
<!-- a feature type for polygons -->
<FeatureTypeStyle>
<FeatureTypeName>feature</FeatureTypeName>
<Rule>
<!-- like a linesymbolizer but with a fill too -->
<Filter xmlns:gml="http://www.opengis.net/gml">
<PropertyIsLessThan>
<PropertyName>P_MALE</PropertyName>
<PropertyName>P_FEMALE</PropertyName>
</PropertyIsLessThan>
</Filter>
<PolygonSymbolizer>
<Fill>
<!-- CssParameters allowed are fill (the color) and fill-opacity -->
<CssParameter name="fill">#ffaaaa</CssParameter>
<CssParameter name="opacity">.5</CssParameter>
</Fill>
<stroke/>
</PolygonSymbolizer>
</Rule>
<Rule>
<!-- like a linesymbolizer but with a fill too -->
<Filter xmlns:gml="http://www.opengis.net/gml">
<PropertyIsLessThan>
<PropertyName>P_FEMALE</PropertyName>
<PropertyName>P_MALE</PropertyName>
</PropertyIsLessThan>
</Filter>
<PolygonSymbolizer>
<Fill>
<!-- CssParameters allowed are fill (the color) and fill-opacity -->
<CssParameter name="fill">#aaaaff</CssParameter>
<CssParameter name="opacity">.5</CssParameter>
</Fill>
<stroke/>
</PolygonSymbolizer>
</Rule>
<Rule>
<!-- like a linesymbolizer but with a fill too -->
<Filter xmlns:gml="http://www.opengis.net/gml">
<PropertyIsEqualTo>
<PropertyName>P_FEMALE</PropertyName>
<PropertyName>P_MALE</PropertyName>
</PropertyIsEqualTo>
</Filter>
<PolygonSymbolizer>
<Fill>
<!-- CssParameters allowed are fill (the color) and fill-opacity -->
<CssParameter name="fill">#ffaaff</CssParameter>
<CssParameter name="opacity">.5</CssParameter>
</Fill>
<stroke/>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?