Merge "ASM #657 - Errors loading Distance Speed tool and Time of Arrival Tool" into asm_14.3.1
Former-commit-id:79c408d965
[formerly05aea71f77
] [formerlyf14ea5f877
] [formerly708e8a8886
[formerlyf14ea5f877
[formerly c4a0a681a3f0ea21237684cdadb2aab8ac8ca078]]] Former-commit-id:708e8a8886
Former-commit-id: 0863e174af108a5ada072782dca0c186e9728d18 [formerly0bd1e23078
] Former-commit-id:cfba2b439c
This commit is contained in:
commit
f03cea1295
1 changed files with 7 additions and 4 deletions
|
@ -107,6 +107,7 @@ import com.vividsolutions.jts.geom.LineString;
|
||||||
* 06-17-2014 DR17409 mgamazaychikov Fix futurePoints calculation in generateNewTrackInfo()
|
* 06-17-2014 DR17409 mgamazaychikov Fix futurePoints calculation in generateNewTrackInfo()
|
||||||
* and generateExistingTrackInfo()
|
* and generateExistingTrackInfo()
|
||||||
* 08-21-2014 DR 15700 Qinglu Lin handle the situation where frameTime is null in paintTrack().
|
* 08-21-2014 DR 15700 Qinglu Lin handle the situation where frameTime is null in paintTrack().
|
||||||
|
* 09-09-2014 RM #657 Qinglu Lin handle StormTrackState.trackType is null.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -694,7 +695,8 @@ public class StormTrackDisplay implements IRenderable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.geomChanged) {
|
if (state.geomChanged) {
|
||||||
if (StormTrackState.trackType.equals("lineOfStorms") && state.justSwitchedToLOS) {
|
if (StormTrackState.trackType != null && StormTrackState.trackType.equals("lineOfStorms")
|
||||||
|
&& state.justSwitchedToLOS) {
|
||||||
GeodeticCalculator gc = new GeodeticCalculator();
|
GeodeticCalculator gc = new GeodeticCalculator();
|
||||||
Coordinate[] coords = state.dragMeGeom.getCoordinates();
|
Coordinate[] coords = state.dragMeGeom.getCoordinates();
|
||||||
gc.setStartingGeographicPoint(coords[0].x, coords[0].y);
|
gc.setStartingGeographicPoint(coords[0].x, coords[0].y);
|
||||||
|
@ -721,7 +723,8 @@ public class StormTrackDisplay implements IRenderable {
|
||||||
state.lineWidth, state.lineStyle);
|
state.lineWidth, state.lineStyle);
|
||||||
paintLabels(target, paintProps);
|
paintLabels(target, paintProps);
|
||||||
}
|
}
|
||||||
if (StormTrackState.trackType.equals("lineOfStorms") && state.justSwitchedToLOS) {
|
if (StormTrackState.trackType != null && StormTrackState.trackType.equals("lineOfStorms")
|
||||||
|
&& state.justSwitchedToLOS) {
|
||||||
state.angle = StormTrackState.oneStormAngle;
|
state.angle = StormTrackState.oneStormAngle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -801,7 +804,7 @@ public class StormTrackDisplay implements IRenderable {
|
||||||
currentState.pointMoved = false;
|
currentState.pointMoved = false;
|
||||||
currentState.originalTrack = false;
|
currentState.originalTrack = false;
|
||||||
moved = true;
|
moved = true;
|
||||||
if (StormTrackState.trackType.equals("lineOfStorms") &&
|
if (StormTrackState.trackType != null && StormTrackState.trackType.equals("lineOfStorms") &&
|
||||||
currentState.justSwitchedToLOS) {
|
currentState.justSwitchedToLOS) {
|
||||||
currentState.justSwitchedToLOS = false;
|
currentState.justSwitchedToLOS = false;
|
||||||
}
|
}
|
||||||
|
@ -1212,7 +1215,7 @@ public class StormTrackDisplay implements IRenderable {
|
||||||
|
|
||||||
double angle = state.angle;
|
double angle = state.angle;
|
||||||
if(!state.justSwitchedToOS) {
|
if(!state.justSwitchedToOS) {
|
||||||
if (StormTrackState.trackType.equals("oneStorm")) {
|
if (StormTrackState.trackType != null && StormTrackState.trackType.equals("oneStorm")) {
|
||||||
StormTrackState.oneStormAngle = angle;
|
StormTrackState.oneStormAngle = angle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue