【geoserver】 条件分支

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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值