diff --git a/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java b/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java index c6bc43cdfc..0463297fdf 100644 --- a/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java +++ b/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java @@ -57,7 +57,9 @@ import com.vividsolutions.jts.geom.Coordinate; * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- - * Apr 12, 2011 bsteffen Initial creation + * Apr 12, 2011 bsteffen Initial creation + * May 31, 2013 1847 bsteffen D2D nsharp will now format Lat/Lons as + * stationId like NC ncharp. * * * @@ -174,15 +176,19 @@ public abstract class D2DNSharpResourceData extends fcstTime = new Timestamp(time.getValidPeriod().getStart().getTime()); stnInfo.setRangestarttime(fcstTime); } + String pointName = this.pointName; if (coordinate != null) { stnInfo.setLongitude(coordinate.x); stnInfo.setLatitude(coordinate.y); + if (pointName == null) { + pointName = String.format("%.2f/%.2f", coordinate.y, + coordinate.x); + } } if (pointName != null) { stnInfo.setStnDisplayInfo(pointName + " " + formatTimestamp(fcstTime)); - } else { - stnInfo.setStnDisplayInfo(formatTimestamp(fcstTime)); + stnInfo.setStnId(pointName); } return stnInfo; }