예제 #1
0
 public Coordinate(LatLngPoint point)
 {
     X = point.Lng;
     Y = point.Lat;
 }
예제 #2
0
        public System.Drawing.Point getMetersFromRowCol(int absoluteRow, int absoluteCol, int z)
        {
            LatLngPoint p = getLatLngFromTile(absoluteRow, absoluteCol, getScaleFromZoom(z, dpi));

            return(new System.Drawing.Point(Convert.ToInt32(Math.Floor(p.Lng)), Convert.ToInt32(Math.Floor(p.Lat))));
        }
예제 #3
0
 public LatLngPoint getCenter(LatLngPoint a)
 {
     return(new LatLngPoint((Lng + a.Lng) / 2, (Lat + a.Lat) / 2));
 }