Ignore:
Timestamp:
2009-10-27T18:49:09+01:00 (15 years ago)
Author:
Gubaer
Message:

Some updates in download dialog and related

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r2327 r2332  
    2525    private static DecimalFormat cDdFormatter = new DecimalFormat("###0.0000");
    2626
     27    /**
     28     * Replies true if lat is in the range [-90,90]
     29     *
     30     * @param lat the latitude
     31     * @return true if lat is in the range [-90,90]
     32     */
     33    public static boolean isValidLat(double lat) {
     34        return lat >= -90d && lat <= 90d;
     35    }
    2736
     37    /**
     38     * Replies true if lon is in the range [-180,180]
     39     *
     40     * @param lon the longitude
     41     * @return true if lon is in the range [-180,180]
     42     */
     43    public static boolean isValidLon(double lon) {
     44        return lon >= -180d && lon <= 180d;
     45    }
     46   
    2847    public static String dms(double pCoordinate) {
    2948
Note: See TracChangeset for help on using the changeset viewer.