Changeset 1385 in josm for trunk


Ignore:
Timestamp:
2009-02-08T22:49:46+01:00 (16 years ago)
Author:
mfloryan
Message:

Fixed another bug in NMEA file import. Please test some NMEA data files
after changing this reader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r1381 r1385  
    442442    }
    443443
    444     private LatLon parseLatLon(String ew, String ns, String dlat, String dlon)
     444    private LatLon parseLatLon(String ns, String ew, String dlat, String dlon)
    445445        throws NumberFormatException {
    446446        String widthNorth = dlat.trim();
     
    462462        double lat = latdeg + latmin / 60;
    463463        if ("S".equals(ns)) {
    464             if(!ew.equals("N")) return null;
    465464            lat = -lat;
    466465        }
     
    473472        double lon = londeg + lonmin / 60;
    474473        if ("W".equals(ew)) {
    475             if(!ew.equals("E")) return null;
    476474            lon = -lon;
    477475        }
Note: See TracChangeset for help on using the changeset viewer.