Omaha #3015 correct usage of Coordinate(lon, lat)
Change-Id: I30029df3e963ee16e2612d5e9f29e7a0ca05a7a8 Former-commit-id: 67c3f28fa0edf3aa41726c6a9d2f18b5af586ab1
This commit is contained in:
parent
b9fe617d57
commit
0c59decfc3
1 changed files with 4 additions and 3 deletions
|
@ -53,12 +53,13 @@ import com.vividsolutions.jts.geom.Coordinate;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Jan 06, 2011 5951 jnjanga Initial creation
|
* Jan 06, 2011 5951 jnjanga Initial creation
|
||||||
* Jan 10, 2013 1448 bgonzale Added app context check in runOnSchedule().
|
* Jan 10, 2013 1448 bgonzale Added app context check in runOnSchedule().
|
||||||
* Jan 18, 2013 1469 bkowal Removed the hdf5 data directory.
|
* Jan 18, 2013 1469 bkowal Removed the hdf5 data directory.
|
||||||
* Mar 28, 2014 2952 mpduff Changed to use UFStatus for logging.
|
* Mar 28, 2014 2952 mpduff Changed to use UFStatus for logging.
|
||||||
* Jun 05, 2014 3226 bclement BinLightning refactor
|
* Jun 05, 2014 3226 bclement BinLightning refactor
|
||||||
* Aug 20, 2014 3549 njensen Fixed spelling in exceptions
|
* Aug 20, 2014 3549 njensen Fixed spelling in exceptions
|
||||||
* Sep 17, 2014 3015 bclement improved exception handling
|
* Sep 17, 2014 3015 bclement improved exception handling
|
||||||
|
* Dec 04, 2014 3015 njensen Corrected usage of Coordinate(x, y)
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -152,8 +153,8 @@ public class MpeLightningSrv {
|
||||||
for (int i = 0; i < latitudes.length; i++) {
|
for (int i = 0; i < latitudes.length; i++) {
|
||||||
float lat = latitudes[i];
|
float lat = latitudes[i];
|
||||||
float lon = longitudes[i];
|
float lon = longitudes[i];
|
||||||
Coordinate latLon = new Coordinate(lat, lon);
|
Coordinate c = new Coordinate(lon, lat);
|
||||||
gridCell = hrap.latLonToGridCoordinate(latLon, po);
|
gridCell = hrap.latLonToGridCoordinate(c, po);
|
||||||
x_hgrids[i] = (short) gridCell.x;
|
x_hgrids[i] = (short) gridCell.x;
|
||||||
y_hgrids[i] = (short) gridCell.y;
|
y_hgrids[i] = (short) gridCell.y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue