powered by
getXYcoords computes the geographical coordinates of the rows and columns of pixels of a raster map.
getXYcoords
getXYcoords(w)
an object of class asc, kasc, sahrlocs, or mapattr.
asc
kasc
sahrlocs
mapattr
Returns a list with two components:
the x coordinates of the columns of pixels of the map
the y coordinates of the rows of pixels of the map
asc, kasc, as.sahrlocs, storemapattr for additionnal informations on objects of class area, kasc, sahrlocs, mapattr respectively
as.sahrlocs
storemapattr
area
# NOT RUN { data(puechabon) (elev <- getkasc(puechabon$kasc, "Elevation")) (coords <- getXYcoords(elev)) nrow(elev) == length(coords$x) ncol(elev) == length(coords$y) # }
Run the code above in your browser using DataLab