- Timestamp:
- 2009-02-08T22:49:46+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r1381 r1385 442 442 } 443 443 444 private LatLon parseLatLon(String ew, String ns, String dlat, String dlon)444 private LatLon parseLatLon(String ns, String ew, String dlat, String dlon) 445 445 throws NumberFormatException { 446 446 String widthNorth = dlat.trim(); … … 462 462 double lat = latdeg + latmin / 60; 463 463 if ("S".equals(ns)) { 464 if(!ew.equals("N")) return null;465 464 lat = -lat; 466 465 } … … 473 472 double lon = londeg + lonmin / 60; 474 473 if ("W".equals(ew)) { 475 if(!ew.equals("E")) return null;476 474 lon = -lon; 477 475 }
Note:
See TracChangeset
for help on using the changeset viewer.