[Geoserver-devel] [JIRA] (GEOS-8949) Allow NetCDF unit library configuration, and fix regression with some outputs caused by unit library upgrade

Andrea Aime created an issue

GeoServer / BugGEOS-8949

Allow NetCDF unit library configuration, and fix regression with some outputs caused by unit library upgrade

Issue Type:

BugBug

Assignee:

Andrea Aime

Components:

Main, NetCDF

Created:

26/Sep/18 6:46 PM

Priority:

MediumMedium

Reporter:

Andrea Aime

The current code gets the unit for each band from the read and formats it using its own “toString()” method, which internally uses a formatter.
During NetCDF encoding it has then to parse such string back to a unit, but the uom library we are using nowadays cannot do so reliably: https://github.com/unitsofmeasurement/uom-se/issues/201
The long term fix will eventually require an overhaul of the unit libraries we use, but for the time being, a formatter that properly round-trips has been added in GeoTools.

At the same time, allow the configuration of NetCDF unit management via config files.

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#100092-sha1:8a88fa1)

Atlassian logo