Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <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>
- <!-- raster layer data flows in here automatically -->
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>cropShape</ogc:Literal>
- <ogc:Function name="gs:Query">
- <ogc:Function name="parameter">
- <ogc:Literal>features</ogc:Literal>
- <!-- FAIL: Some sort of reference to the vector datasource needs to go here -->
- </ogc:Function>
- <ogc:Function name="parameter">
- <ogc:Literal>filter</ogc:Literal>
- <ogc:Literal>
- <ogc:Filter>
- <ogc:PropertyIsEqualTo>
- <ogc:PropertyName>gaul_code</ogc:PropertyName>
- <ogc:Literal>3258</ogc:Literal> <!-- eventually this could be specified via the request params using "env" -->
- </ogc:PropertyIsEqualTo>
- </ogc:Filter>
- </ogc:Literal>
- </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