powered by
Convert geographic coordinates from Universal Transverse Mercator system to Latitude/Longitude.
grid2latlong(input)
A data frame with columns named x and y of the UTM coordinates to convert
x
y
either an n x 2 matrix of grid coordinates or an object of class SpatialPolygons (See SpatialPolygons-class)
n x 2
Either a data frame with the corresponding longitude and latitude, or a SpatialPolygons object with the coordinates changed.
Longitude/latitudes are not a grid-based coordinate system: latitudes are equidistant but the distance between longitudes varies.
latlong2grid
# NOT RUN { coord <- data.frame(rbind( # Montreal, QC c(-6414.30, 5052.849), # Vancouver, BC c(-122.6042, 45.6605) )) grid2latlong(coord) # }
Run the code above in your browser using DataLab