Advertisement
Guest User

SLD transform with BarnesSurface -> RasterAsPointCollection

a guest
Feb 27th, 2013
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.    <StyledLayerDescriptor version="1.0.0"
  3.       xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  4.       xmlns="http://www.opengis.net/sld"
  5.       xmlns:ogc="http://www.opengis.net/ogc"
  6.       xmlns:xlink="http://www.w3.org/1999/xlink"
  7.       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  8.      <NamedLayer>
  9.        <Name>Dot size by band</Name>
  10.        <UserStyle>
  11.          <Title>Dot size by band</Title>
  12.          <Abstract>
  13.            Symbol of a RasterAsPointCollection where point's size depend of the value from a
  14.            Barnes Surface Interpolation that takes a point data source.        
  15.          </Abstract>
  16.          <FeatureTypeStyle>          
  17.           <!-- Transforms an irregular point data source on a grid of
  18.               regular points with an interpolated value -->
  19.           <Transformation>
  20.             <ogc:Function name="gs:RasterAsPointCollection">
  21.               <ogc:Function name="parameter">
  22.                 <ogc:Literal>data</ogc:Literal>
  23.                 <ogc:Function name="gs:BarnesSurface">
  24.                   <ogc:Function name="parameter">
  25.                     <ogc:Literal>data</ogc:Literal>
  26.                   </ogc:Function>
  27.                   <ogc:Function name="parameter">
  28.                     <ogc:Literal>valueAttr</ogc:Literal>
  29.                     <ogc:Literal>valor</ogc:Literal>
  30.                   </ogc:Function>
  31.                   <ogc:Function name="parameter">
  32.                     <ogc:Literal>dataLimit</ogc:Literal>
  33.                     <ogc:Literal>100</ogc:Literal>
  34.                   </ogc:Function>
  35.                   <ogc:Function name="parameter">
  36.                     <ogc:Literal>scale</ogc:Literal>
  37.                     <ogc:Literal>.3</ogc:Literal>
  38.                   </ogc:Function>
  39.                   <ogc:Function name="parameter">
  40.                     <ogc:Literal>convergence</ogc:Literal>
  41.                     <ogc:Literal>0.5</ogc:Literal>
  42.                   </ogc:Function>
  43.                   <ogc:Function name="parameter">
  44.                     <ogc:Literal>passes</ogc:Literal>
  45.                     <ogc:Literal>3</ogc:Literal>
  46.                   </ogc:Function>
  47.                   <ogc:Function name="parameter">
  48.                     <ogc:Literal>minObservations</ogc:Literal>
  49.                     <ogc:Literal>2</ogc:Literal>
  50.                   </ogc:Function>
  51.                   <ogc:Function name="parameter">
  52.                     <ogc:Literal>maxObservationDistance</ogc:Literal>
  53.                     <ogc:Literal>.8</ogc:Literal>
  54.                   </ogc:Function>
  55.                   <ogc:Function name="parameter">
  56.                     <ogc:Literal>pixelsPerCell</ogc:Literal>
  57.                     <ogc:Literal>20</ogc:Literal>
  58.                   </ogc:Function>
  59.                   <ogc:Function name="parameter">
  60.                     <ogc:Literal>outputBBOX</ogc:Literal>
  61.                     <ogc:Function name="env">
  62.                       <ogc:Literal>wms_bbox</ogc:Literal>
  63.                     </ogc:Function>
  64.                   </ogc:Function>
  65.                   <ogc:Function name="parameter">
  66.                     <ogc:Literal>outputWidth</ogc:Literal>
  67.                     <ogc:Literal>20</ogc:Literal>
  68.                   </ogc:Function>
  69.                   <ogc:Function name="parameter">
  70.                     <ogc:Literal>outputHeight</ogc:Literal>
  71.                     <ogc:Literal>20</ogc:Literal>
  72.                   </ogc:Function>
  73.                   <ogc:Function name="parameter">
  74.                     <ogc:Literal>queryBuffer</ogc:Literal>
  75.                     <ogc:Literal>40</ogc:Literal>
  76.                   </ogc:Function>
  77.                 </ogc:Function>
  78.               </ogc:Function>
  79.             </ogc:Function>
  80.           </Transformation>
  81.           <!-- Minimal symbol with a dot and a label with the
  82.               interpolated value-->
  83.           <Rule>
  84.            <PointSymbolizer>
  85.              <Graphic>
  86.                <Mark>
  87.                  <WellKnownName>circle</WellKnownName>
  88.                  <Fill>
  89.                    <CssParameter name="fill">#FF0000</CssParameter>
  90.                  </Fill>
  91.                </Mark>
  92.                <Size>3</Size>
  93.              </Graphic>
  94.            </PointSymbolizer>
  95.            <TextSymbolizer>
  96.              <Label>
  97.                <!-- what is the property name of a RasterAsPointCollection??? -->
  98.                <ogc:PropertyName>Band1</ogc:PropertyName>
  99.                <!-- what is the property name of a RasterAsPointCollection??? -->
  100.              </Label>
  101.            </TextSymbolizer>
  102.           </Rule>
  103.          </FeatureTypeStyle>
  104.        </UserStyle>
  105.      </NamedLayer>
  106.     </StyledLayerDescriptor>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement