Guest User

Untitled

a guest
Aug 14th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" xmlns="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" 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.                             <ogc:Function name="gs:GetFullCoverage">
  14.                               <ogc:Function name="parameter">
  15.                                     <ogc:Literal>name</ogc:Literal>
  16.                                     <ogc:Literal>workspace:coverage</ogc:Literal> <!-- raster loaded here -->
  17.                                 </ogc:Function>
  18.                             </ogc:Function>
  19.                         </ogc:Function>
  20.                         <ogc:Function name="parameter">
  21.                             <ogc:Literal>cropShape</ogc:Literal>
  22.                             <ogc:Function name="gs:CollectGeometries">
  23.                                 <ogc:Function name="parameter">
  24.                                     <ogc:Literal>features</ogc:Literal>
  25.                                     <!-- vector layer data flows in here automatically -->
  26.                                     <!-- cql_filter is used to filter this down to just the unit of interest (but gs:Query would probably work too) -->
  27.                                 </ogc:Function>
  28.                             </ogc:Function>
  29.                         </ogc:Function>
  30.                     </ogc:Function>
  31.                 </sld:Transformation>
  32.                 <sld:Rule>
  33.                     <sld:RasterSymbolizer>
  34.                         <sld:ColorMap>
  35.                             <sld:ColorMapEntry color="#b7dcf4" opacity="0" quantity="-9999" />
  36.                             <sld:ColorMapEntry color="#91ab84" opacity="1" quantity="0.0" />
  37.                             <sld:ColorMapEntry color="#c3d4bb" opacity="1" quantity="0.25" />
  38.                             <sld:ColorMapEntry color="#ffffcb" opacity="1" quantity="0.5" />
  39.                             <sld:ColorMapEntry color="#cf93ba" opacity="1" quantity="0.75" />
  40.                             <sld:ColorMapEntry color="#a44883" opacity="1" quantity="1.0" />
  41.                             <sld:ColorMapEntry color="#eaeaea" opacity="1" quantity="+9999" />
  42.                         </sld:ColorMap>
  43.                     </sld:RasterSymbolizer>
  44.                 </sld:Rule>
  45.             </sld:FeatureTypeStyle>
  46.         </sld:UserStyle>
  47.     </sld:UserLayer>
  48. </sld:StyledLayerDescriptor>
Advertisement
Add Comment
Please, Sign In to add comment