Issue #1847 D2D nsharp will now format Lat/Lons as stationId like NC ncharp.
Change-Id: If5507d0dc13bf283d97218d68a49120120fe8626 Former-commit-id:a5611b16d9
[formerly36cd455621
] [formerlyda73b0fd4e
] [formerlya5611b16d9
[formerly36cd455621
] [formerlyda73b0fd4e
] [formerly7ae82832d1
[formerlyda73b0fd4e
[formerly fba34b77a870a2fc1d6b4301dc3a4d61ce424f67]]]] Former-commit-id:7ae82832d1
Former-commit-id:b748dd3393
[formerly66cc26f78b
] [formerly 3baf5472d719747b03982686857a8604a64ebb27 [formerlyd720c0fa3f
]] Former-commit-id: c23cfb4a400a52446540a1e9b754d210a9edab16 [formerly7cb83e5c64
] Former-commit-id:82bd402966
This commit is contained in:
parent
3d394ce417
commit
8f22a93919
1 changed files with 9 additions and 3 deletions
|
@ -57,7 +57,9 @@ import com.vividsolutions.jts.geom.Coordinate;
|
||||||
*
|
*
|
||||||
* Date Ticket# Engineer Description
|
* 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>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -174,15 +176,19 @@ public abstract class D2DNSharpResourceData extends
|
||||||
fcstTime = new Timestamp(time.getValidPeriod().getStart().getTime());
|
fcstTime = new Timestamp(time.getValidPeriod().getStart().getTime());
|
||||||
stnInfo.setRangestarttime(fcstTime);
|
stnInfo.setRangestarttime(fcstTime);
|
||||||
}
|
}
|
||||||
|
String pointName = this.pointName;
|
||||||
if (coordinate != null) {
|
if (coordinate != null) {
|
||||||
stnInfo.setLongitude(coordinate.x);
|
stnInfo.setLongitude(coordinate.x);
|
||||||
stnInfo.setLatitude(coordinate.y);
|
stnInfo.setLatitude(coordinate.y);
|
||||||
|
if (pointName == null) {
|
||||||
|
pointName = String.format("%.2f/%.2f", coordinate.y,
|
||||||
|
coordinate.x);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (pointName != null) {
|
if (pointName != null) {
|
||||||
stnInfo.setStnDisplayInfo(pointName + " "
|
stnInfo.setStnDisplayInfo(pointName + " "
|
||||||
+ formatTimestamp(fcstTime));
|
+ formatTimestamp(fcstTime));
|
||||||
} else {
|
stnInfo.setStnId(pointName);
|
||||||
stnInfo.setStnDisplayInfo(formatTimestamp(fcstTime));
|
|
||||||
}
|
}
|
||||||
return stnInfo;
|
return stnInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue