[Geoserver-devel] [JIRA] (GEOS-9876) Custom coverage dimension has no effect

Ulrich Loup created an issue

GeoServer / ImprovementGEOS-9876

Custom coverage dimension has no effect

Issue Type:

ImprovementImprovement

Affects Versions:

2.18.1, 2.18.2

Assignee:

Unassigned

Created:

26/Jan/21 3:12 PM

Priority:

MediumMedium

Reporter:

Ulrich Loup

The class

org.geoserver.catalog.CoverageDimensionCustomizerReader

is a wrapper for GridCoverage2DReader to use custom GridSampleDimension, e.g., for custom band names as the attribute description. These custom dimensions can be specified as parameters to the read method of GridCoverage2DReader.

However, any custom description is also checked against the predefined CoverageDimensionInfo name and ignored in case the name and the custom description do not match (see
CoverageDimensionCustomizerReader.java#L586)

To enable customized GridSampleDimension descriptions to take effect I propose the patch (Diff patch):

586,587c586
<                     (sampleDimDescription == null
<                                     || !sampleDimDescription.toString().equalsIgnoreCase(name))
---
>                     sampleDimDescription == null

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#100154-sha1:4dba4bb)

Atlassian logo