Ciprian Tomoiaga ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3Addf811f4-458d-49b9-b63a-9d640b9ef674 ) *created* an issue
GeoServer ( https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZjY3N2JlOTIyOGU5NDQ1ODk3NjZiZWZkMzQ3Nzc2ZGIiLCJwIjoiaiJ9 ) / Improvement ( https://osgeo-org.atlassian.net/browse/GEOS-10159?atlOrigin=eyJpIjoiZjY3N2JlOTIyOGU5NDQ1ODk3NjZiZWZkMzQ3Nzc2ZGIiLCJwIjoiaiJ9 ) GEOS-10159 ( https://osgeo-org.atlassian.net/browse/GEOS-10159?atlOrigin=eyJpIjoiZjY3N2JlOTIyOGU5NDQ1ODk3NjZiZWZkMzQ3Nzc2ZGIiLCJwIjoiaiJ9 ) Incorrect documentation for RasterSymbolizer when ColorMap type is interval ( https://osgeo-org.atlassian.net/browse/GEOS-10159?atlOrigin=eyJpIjoiZjY3N2JlOTIyOGU5NDQ1ODk3NjZiZWZkMzQ3Nzc2ZGIiLCJwIjoiaiJ9 ) Issue Type: Improvement Assignee: Unassigned Created: 23/Jul/21 10:44 AM Priority: Medium Reporter: Ciprian Tomoiaga ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3Addf811f4-458d-49b9-b63a-9d640b9ef674 ) The documentation ( https://docs.geoserver.org/latest/en/user/styling/sld/reference/rastersymbolizer.html#type ) for ColorMap type interval states: > > > > type="intervals" value means that each interval defined by two entries is > rendered using the color of the first (lowest-value) entry. No color > interpolation is applied across the intervals. > > (my underline) However, this is not true. Instead, the second (highest-value) entry is used. This is confirmed by the code: https://github.com/geoserver/geoserver/blob/f2e946f47cd28c5c0137815006d131725790566c/src/wms/src/main/java/org/geoserver/wms/featureinfo/ColorMapLabelMatcher.java#L116-L122 I think the docs should also specify the comment in the code: > > > > Raster Symbolizer will not produce results for pixel values > then the > last ColorMapEntry quantity, in case of ColorMap of type interval > > ( https://osgeo-org.atlassian.net/browse/GEOS-10159#add-comment?atlOrigin=eyJpIjoiZjY3N2JlOTIyOGU5NDQ1ODk3NjZiZWZkMzQ3Nzc2ZGIiLCJwIjoiaiJ9 ) Add Comment ( https://osgeo-org.atlassian.net/browse/GEOS-10159#add-comment?atlOrigin=eyJpIjoiZjY3N2JlOTIyOGU5NDQ1ODk3NjZiZWZkMzQ3Nzc2ZGIiLCJwIjoiaiJ9 ) Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100170- sha1:3371920 )
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
