Changeset 4009 in josm for trunk


Ignore:
Timestamp:
2011-03-30T10:22:39+02:00 (14 years ago)
Author:
bastiK
Message:

see #6162 - Error: NaN in greatCircleDistance for some images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java

    r3662 r4009  
    531531            lon = (deg + (min / 60) + (sec / 3600));
    532532
     533            if (Double.isNaN(lon))
     534                throw new IllegalArgumentException();
     535
    533536            if (dir.getString(GpsDirectory.TAG_GPS_LONGITUDE_REF).charAt(0) == 'W') {
    534537                lon = -lon;
     
    544547
    545548            lat = (deg + (min / 60) + (sec / 3600));
     549
     550            if (Double.isNaN(lat))
     551                throw new IllegalArgumentException();
    546552
    547553            if (dir.getString(GpsDirectory.TAG_GPS_LATITUDE_REF).charAt(0) == 'S') {
Note: See TracChangeset for help on using the changeset viewer.