Esempio n. 1
0
        public static GeoBox From(GeoPoint point, int zoom = 1)
        {
            var geo = new GeoBox();

            geo.UpperLeft  = new GeoPoint(point.Latitude + 0.037223f * zoom, point.Longitude - 0.093163f * zoom);
            geo.LowerRight = new GeoPoint(point.Latitude - 0.017456f * zoom, point.Longitude + 0.0789353f * zoom);
            return(geo);
        }
 public WhereAreFires(GeoBox geoBox) : this()
 {
     //this.date1 = int.Parse (date1.ToString (""));
     //this.date2 = int.Parse (date2.ToString (""));
     ulx = geoBox.UpperLeft.Longitude;
     uly = geoBox.UpperLeft.Latitude;
     lrx = geoBox.LowerRight.Longitude;
     lry = geoBox.LowerRight.Latitude;
 }