Guest User

Untitled

a guest
Aug 14th, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.10 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version="1.0.0">
  3.     <sld:UserLayer>
  4.         <sld:LayerFeatureConstraints>
  5.             <sld:FeatureTypeConstraint/>
  6.         </sld:LayerFeatureConstraints>
  7.         <sld:UserStyle>
  8.             <sld:FeatureTypeStyle>
  9.                <sld:Transformation>
  10.                   <ogc:Function name="gs:CropCoverage">
  11.                         <ogc:Function name="parameter">
  12.                           <ogc:Literal>coverage</ogc:Literal>
  13.                           <!-- raster layer data flows in here automatically -->
  14.                         </ogc:Function>
  15.                         <ogc:Function name="parameter">
  16.                            <ogc:Literal>cropShape</ogc:Literal>
  17.                            <ogc:Function name="gs:Query">
  18.                               <ogc:Function name="parameter">
  19.                                  <ogc:Literal>features</ogc:Literal>
  20.                                  <!-- FAIL: Some sort of reference to the vector datasource needs to go here -->
  21.                               </ogc:Function>
  22.                               <ogc:Function name="parameter">
  23.                                   <ogc:Literal>filter</ogc:Literal>
  24.                                   <ogc:Literal>
  25.                                       <ogc:Filter>
  26.                                           <ogc:PropertyIsEqualTo>
  27.                                               <ogc:PropertyName>gaul_code</ogc:PropertyName>
  28.                                               <ogc:Literal>3258</ogc:Literal> <!-- eventually this could be specified via the request params using "env" -->
  29.                                           </ogc:PropertyIsEqualTo>
  30.                                       </ogc:Filter>
  31.                                   </ogc:Literal>
  32.                               </ogc:Function>
  33.                            </ogc:Function>
  34.                         </ogc:Function>
  35.                   </ogc:Function>
  36.                 </sld:Transformation>
  37.                 <sld:Rule>
  38.                     <sld:RasterSymbolizer>
  39.                         <sld:ColorMap>
  40.                             <sld:ColorMapEntry color="#b7dcf4" opacity="0" quantity="-9999"/>
  41.                             <sld:ColorMapEntry color="#91ab84" opacity="1" quantity="0.0"/>
  42.                             <sld:ColorMapEntry color="#c3d4bb" opacity="1" quantity="0.25"/>
  43.                             <sld:ColorMapEntry color="#ffffcb" opacity="1" quantity="0.5"/>
  44.                             <sld:ColorMapEntry color="#cf93ba" opacity="1" quantity="0.75"/>
  45.                             <sld:ColorMapEntry color="#a44883" opacity="1" quantity="1.0"/>
  46.                             <sld:ColorMapEntry color="#eaeaea" opacity="1" quantity="+9999"/>
  47.                         </sld:ColorMap>
  48.                     </sld:RasterSymbolizer>
  49.                 </sld:Rule>
  50.             </sld:FeatureTypeStyle>
  51.         </sld:UserStyle>
  52.     </sld:UserLayer>
  53. </sld:StyledLayerDescriptor>
Advertisement
Add Comment
Please, Sign In to add comment