[Geoserver-devel] [JIRA] (GEOS-10159) Incorrect documentation for RasterSymbolizer when ColorMap type is interval

Ciprian Tomoiaga created an issue

GeoServer / ImprovementGEOS-10159

Incorrect documentation for RasterSymbolizer when ColorMap type is interval

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Created:

23/Jul/21 10:44 AM

Priority:

MediumMedium

Reporter:

Ciprian Tomoiaga

The documentation 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

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100170-sha1:3371920)

Atlassian logo