开源GIS相关

3,发布伪三维效果的图层

2019-04-25  本文已影响4人  桃子味的白开水
<?xml version="1.0" encoding="UTF-8"?>

<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>alt-buildings</Name>

    <UserStyle>

      <FeatureTypeStyle>

        <Rule>

          <PolygonSymbolizer>

            <Geometry>

              <ogc:Function name="isometric">

                <ogc:PropertyName>the_geom</ogc:PropertyName>

                <ogc:PropertyName>height</ogc:PropertyName>

              </ogc:Function>

            </Geometry>

            <Fill>

              <CssParameter name="fill">#cecdc5</CssParameter>

              <CssParameter name="fill-opacity">0.8</CssParameter>

            </Fill>

          </PolygonSymbolizer>

          <PolygonSymbolizer>

            <Geometry>

              <ogc:Function name="offset">

                <ogc:PropertyName>the_geom</ogc:PropertyName>

                <ogc:Literal>0</ogc:Literal>

                <ogc:PropertyName>height</ogc:PropertyName>

              </ogc:Function>

            </Geometry>

            <Fill>

              <CssParameter name="fill">#eeece7</CssParameter>

              <CssParameter name="fill-opacity">1</CssParameter>

            </Fill>

          </PolygonSymbolizer>

        </Rule>

      </FeatureTypeStyle>

      </UserStyle>

  </NamedLayer>

</StyledLayerDescriptor>
image
上一篇下一篇

猜你喜欢

热点阅读