Issue #1847 D2D nsharp will now format Lat/Lons as stationId like NC ncharp.
Change-Id: If5507d0dc13bf283d97218d68a49120120fe8626 Former-commit-id:7ae82832d1
[formerly fba34b77a870a2fc1d6b4301dc3a4d61ce424f67] Former-commit-id:da73b0fd4e
This commit is contained in:
parent
7a73bd79d6
commit
36cd455621
1 changed files with 9 additions and 3 deletions
|
@ -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.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue