30.14 <?xml version="1.0" encoding="GBK"?>
<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>redflag</Name>
<UserStyle>
<Name>base station</Name>
<Title>A small red flag</Title>
<Abstract>A sample of how to use an SVG based symbolizer</Abstract>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>排放口</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="chushuikou_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>检查井</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="jianchajing_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>污染源点</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="wuranyuan_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>雨水井</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="yushuibi_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>污水井</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="wushuijing_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>污水泵站</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="bengzhan_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>泵站</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="bengzhan_point.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>智能井盖</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="zhinengjingai.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>pointtype</ogc:PropertyName>
<ogc:Literal>拍门</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="paimen.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>18</ogc:Literal>
</Size> </Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
【geoserver】 条件分支
最新推荐文章于 2022-11-27 18:37:53 发布