From 048ee71f6a6eb61b5c2e88390ca30ac4e2b67c91 Mon Sep 17 00:00:00 2001 From: Ben Steffensmeier Date: Wed, 11 Jun 2014 14:40:47 -0500 Subject: [PATCH] Omaha #2061 Fix ogc reference to Metar units. Former-commit-id: 4773eaa7d0736a4bd68270742b344a6e069ab0ea --- .../uf/edex/plugin/obs/ogc/metar/MetarFeatureFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.obs.ogc/src/com/raytheon/uf/edex/plugin/obs/ogc/metar/MetarFeatureFactory.java b/edexOsgi/com.raytheon.uf.edex.plugin.obs.ogc/src/com/raytheon/uf/edex/plugin/obs/ogc/metar/MetarFeatureFactory.java index 1d4d52e631..9ce71132a7 100644 --- a/edexOsgi/com.raytheon.uf.edex.plugin.obs.ogc/src/com/raytheon/uf/edex/plugin/obs/ogc/metar/MetarFeatureFactory.java +++ b/edexOsgi/com.raytheon.uf.edex.plugin.obs.ogc/src/com/raytheon/uf/edex/plugin/obs/ogc/metar/MetarFeatureFactory.java @@ -26,6 +26,7 @@ * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Aug 3, 2011 bclement Initial creation + * Jun 11, 2011 2061 bsteffen Remove units constants from metar * */ package com.raytheon.uf.edex.plugin.obs.ogc.metar; @@ -40,6 +41,7 @@ import java.util.Map; import java.util.Set; import javax.measure.quantity.Pressure; +import javax.measure.unit.SI; import javax.measure.unit.Unit; import org.geotools.feature.simple.SimpleFeatureBuilder; @@ -224,7 +226,7 @@ public class MetarFeatureFactory implements FeatureFactory { * @return */ protected static String get3HrPress(float press) { - Unit unit = MetarRecord.PRESSURE_UNIT; + Unit unit = SI.HECTO(SI.PASCAL); return String.format("%f %s", press, unit.toString()); }