If this can be done could anyone point me in direction of an example please? I've gone through various links etc. but not finding anything so far that relates this to a raster DEM. I have a 32bit DEM for Ireland and use the below style as its colour ramp which all seems to work fine on a global scale. There's 255 ColorMap levels but only start and end shown below.
The issue is that viewing the DEM globally is fine but locally I think more detail can be discerned if a dynamic style was possible. For example looking at the global DEM the highest point should be red and the lowest blue and everything else in between should slot into a ramp level. But when we query this WMS with an extent constraint is it possible to set a dynamic style such that red still defines the highest point in the region and blue the lowest with the rest following a ramp? <sld:Title/> <sld:FeatureTypeStyle> <sld:Name>name</sld:Name> <sld:FeatureTypeName>Feature</sld:FeatureTypeName> <sld:Rule> <sld:MinScaleDenominator>8000</sld:MinScaleDenominator> <sld:RasterSymbolizer> <sld:Geometry> <ogc:PropertyName>grid</ogc:PropertyName> </sld:Geometry> <sld:ColorMap> <sld:ColorMapEntry label="-26.3560" color="#2c7bb6" quantity="-26.355951309203999"/> <sld:ColorMapEntry label="1.1691" color="#2e7cb7" quantity="1.1691155897985155"/> <sld:ColorMapEntry label="2.4462" color="#307eb8" quantity="2.4462433510857444"/> . . <sld:ColorMapEntry label="417.3692" color="#d92220" quantity="417.36918553683171"/> <sld:ColorMapEntry label="447.8075" color="#d9201f" quantity="447.80745853991777"/> <sld:ColorMapEntry label="489.2119" color="#d81e1e" quantity="489.21194792393862"/> <sld:ColorMapEntry label="550.2034" color="#d81b1d" quantity="550.20335811619361"/> <sld:ColorMapEntry label="893.3701" color="#d7191c" quantity="893.37005420883747"/> </sld:ColorMap> </sld:RasterSymbolizer> </sld:Rule> <sld:VendorOption name="composite">multiply</sld:VendorOption> </sld:FeatureTypeStyle> </sld:UserStyle> </sld:UserLayer> </sld:StyledLayerDescriptor> Thanks, Paul
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users