Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <sld:UserLayer>
- <sld:LayerFeatureConstraints>
- <sld:FeatureTypeConstraint />
- </sld:LayerFeatureConstraints>
- <sld:UserStyle>
- <sld:FeatureTypeStyle>
- <sld:Transformation>
- <ogc:Function name="gs:CropCoverage">
- <ogc:Function name="parameter">
- <ogc:Literal>coverage</ogc:Literal>
- <ogc:Function name="gs:GetFullCoverage">
- <ogc:Function name="parameter">
- <ogc:Literal>name</ogc:Literal>
- <ogc:Literal>workspace:coverage</ogc:Literal> <!-- raster loaded here -->
- </ogc:Function>
- </ogc:Function>
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>cropShape</ogc:Literal>
- <ogc:Function name="gs:CollectGeometries">
- <ogc:Function name="parameter">
- <ogc:Literal>features</ogc:Literal>
- <!-- vector layer data flows in here automatically -->
- <!-- cql_filter is used to filter this down to just the unit of interest (but gs:Query would probably work too) -->
- </ogc:Function>
- </ogc:Function>
- </ogc:Function>
- </ogc:Function>
- </sld:Transformation>
- <sld:Rule>
- <sld:RasterSymbolizer>
- <sld:ColorMap>
- <sld:ColorMapEntry color="#b7dcf4" opacity="0" quantity="-9999" />
- <sld:ColorMapEntry color="#91ab84" opacity="1" quantity="0.0" />
- <sld:ColorMapEntry color="#c3d4bb" opacity="1" quantity="0.25" />
- <sld:ColorMapEntry color="#ffffcb" opacity="1" quantity="0.5" />
- <sld:ColorMapEntry color="#cf93ba" opacity="1" quantity="0.75" />
- <sld:ColorMapEntry color="#a44883" opacity="1" quantity="1.0" />
- <sld:ColorMapEntry color="#eaeaea" opacity="1" quantity="+9999" />
- </sld:ColorMap>
- </sld:RasterSymbolizer>
- </sld:Rule>
- </sld:FeatureTypeStyle>
- </sld:UserStyle>
- </sld:UserLayer>
- </sld:StyledLayerDescriptor>
Advertisement
Add Comment
Please, Sign In to add comment