Uploaded image for project: 'GeoServer'
  1. GEOS-8949

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15-M0
    • Component/s: Main, NetCDF
    • Labels:
      None

      Description

      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.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                aaime Andrea Aime
                Reporter:
                aaime Andrea Aime
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: