Learn R Programming

velox (version 0.2.0)

VeloxRaster_getCoordinates: Get coordinates

Description

Returns a matrix containing the x-y coordinates of all cell center points of a VeloxRaster.

Arguments

Value

A numeric matrix.

Examples

Run this code
# NOT RUN {
## Make VeloxRaster
mat <- matrix(1:100, 10, 10)
vx <- velox(mat, extent=c(0,1,0,1), res=c(0.1,0.1), crs="+proj=longlat +datum=WGS84 +no_defs")
## Get coordinate matrix
cmat <- vx$getCoordinates()

# }

Run the code above in your browser using DataLab