]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/srtm/SrtmTile.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / function / srtm / SrtmTile.java
index d7ab38ff279ec6f9573cf457b7581062ffa6a688..301bbaf2ccb7849f1378a6f910999c188965a12a 100644 (file)
@@ -10,7 +10,7 @@ public class SrtmTile
 {
        /** Latitude in degrees north/south */
        private int _latitude = 0;
-       /** Longitude ini degrees east/west */
+       /** Longitude in degrees east/west */
        private int _longitude = 0;
 
        /**
@@ -25,6 +25,17 @@ public class SrtmTile
                _longitude = (int) Math.floor(longitude.getDouble());
        }
 
+       /**
+        * Constructor working out the tile for a single point
+        * @param inLatitude latitude in degrees
+        * @param inLongitude longitude in degrees
+        */
+       public SrtmTile(int inLatitude, int inLongitude)
+       {
+               _latitude = inLatitude;
+               _longitude = inLongitude;
+       }
+
        /**
         * Check for equality
         * @param inOther other tile object