Guest User

Untitled

a guest
Aug 14th, 2015
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.97 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.                             <!-- raster layer data flows in here automatically -->
  14.                         </ogc:Function>
  15.                         <ogc:Function name="parameter">
  16.                             <ogc:Literal>cropShape</ogc:Literal>
  17.                             <ogc:Literal>MULTIPOLYGON(((-111.04884731397 42.0015576072037,-111.046722412109 40.9979591332376,-109.050085630268 40.99894368276,-109.052912134677 38.9808068349957,-109.049977589399 38.2638216130435,-109.046622965485 37.6443499401212,-109.045143127441 37.2210977114737,-109.045111414045 37.0355095900595,-109.045219421387 36.9990844801068,-114.045818533748 37.0003954768181,-114.045818526298 37.0004009976983,-114.045770332217 37.0385604798794,-114.045517329127 37.2388977780938,-114.044948063791 37.6896567083895,-114.044192049652 38.2882836423814,-114.043374069035 38.9624927192926,-114.041659884155 41.9902956113219,-114.037022538483 41.9902256280184,-113.970551118255 41.9901041835546,-113.694614365697 41.9905687607825,-113.126506507397 41.9924100972712,-111.04884731397 42.0015576072037)))</ogc:Literal>
  18.                             <!-- multi-polygon could be provided by "env" subsitution, but wont work for shapes with LOTS of node (too big for HTTP GET parameter) -->
  19.                         </ogc:Function>
  20.                     </ogc:Function>
  21.                 </sld:Transformation>
  22.                 <sld:Rule>
  23.                     <sld:RasterSymbolizer>
  24.                         <sld:ColorMap>
  25.                             <sld:ColorMapEntry color="#b7dcf4" opacity="0" quantity="-9999" />
  26.                             <sld:ColorMapEntry color="#91ab84" opacity="1" quantity="0.0" />
  27.                             <sld:ColorMapEntry color="#c3d4bb" opacity="1" quantity="0.25" />
  28.                             <sld:ColorMapEntry color="#ffffcb" opacity="1" quantity="0.5" />
  29.                             <sld:ColorMapEntry color="#cf93ba" opacity="1" quantity="0.75" />
  30.                             <sld:ColorMapEntry color="#a44883" opacity="1" quantity="1.0" />
  31.                             <sld:ColorMapEntry color="#eaeaea" opacity="1" quantity="+9999" />
  32.                         </sld:ColorMap>
  33.                     </sld:RasterSymbolizer>
  34.                 </sld:Rule>
  35.             </sld:FeatureTypeStyle>
  36.         </sld:UserStyle>
  37.     </sld:UserLayer>
  38. </sld:StyledLayerDescriptor>
Advertisement
Add Comment
Please, Sign In to add comment