Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <StyledLayerDescriptor version="1.0.0"
- xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
- 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">
- <NamedLayer>
- <Name>Dot size by band</Name>
- <UserStyle>
- <Title>Dot size by band</Title>
- <Abstract>
- Symbol of a RasterAsPointCollection where point's size depend of the value from a
- Barnes Surface Interpolation that takes a point data source.
- </Abstract>
- <FeatureTypeStyle>
- <!-- Transforms an irregular point data source on a grid of
- regular points with an interpolated value -->
- <Transformation>
- <ogc:Function name="gs:RasterAsPointCollection">
- <ogc:Function name="parameter">
- <ogc:Literal>data</ogc:Literal>
- <ogc:Function name="gs:BarnesSurface">
- <ogc:Function name="parameter">
- <ogc:Literal>data</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>valueAttr</ogc:Literal>
- <ogc:Literal>valor</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>dataLimit</ogc:Literal>
- <ogc:Literal>100</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>scale</ogc:Literal>
- <ogc:Literal>.3</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>convergence</ogc:Literal>
- <ogc:Literal>0.5</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>passes</ogc:Literal>
- <ogc:Literal>3</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>minObservations</ogc:Literal>
- <ogc:Literal>2</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>maxObservationDistance</ogc:Literal>
- <ogc:Literal>.8</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>pixelsPerCell</ogc:Literal>
- <ogc:Literal>20</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>outputBBOX</ogc:Literal>
- <ogc:Function name="env">
- <ogc:Literal>wms_bbox</ogc:Literal>
- </ogc:Function>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>outputWidth</ogc:Literal>
- <ogc:Literal>20</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>outputHeight</ogc:Literal>
- <ogc:Literal>20</ogc:Literal>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>queryBuffer</ogc:Literal>
- <ogc:Literal>40</ogc:Literal>
- </ogc:Function>
- </ogc:Function>
- </ogc:Function>
- </ogc:Function>
- </Transformation>
- <!-- Minimal symbol with a dot and a label with the
- interpolated value-->
- <Rule>
- <PointSymbolizer>
- <Graphic>
- <Mark>
- <WellKnownName>circle</WellKnownName>
- <Fill>
- <CssParameter name="fill">#FF0000</CssParameter>
- </Fill>
- </Mark>
- <Size>3</Size>
- </Graphic>
- </PointSymbolizer>
- <TextSymbolizer>
- <Label>
- <!-- what is the property name of a RasterAsPointCollection??? -->
- <ogc:PropertyName>Band1</ogc:PropertyName>
- <!-- what is the property name of a RasterAsPointCollection??? -->
- </Label>
- </TextSymbolizer>
- </Rule>
- </FeatureTypeStyle>
- </UserStyle>
- </NamedLayer>
- </StyledLayerDescriptor>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement