warp.py | R Documentation |
Title
warp.py( fp, extent = c(-1e+05, 1e+05, -1e+05, 1e+05), dimension = c(100, 100), projection = "+proj=laea", resample = "nearest" )
fp |
gdal data source name (file, url, VRT string, database connection string, etc) |
extent |
xmin,xmax,ymin,ymax |
dimension |
width,height in pixels |
projection |
projection string of output (interpreted by GDAL input reader) |
WarpedVRT dataset
warped <- warp.py(rgba_tif(), extent = c(-1e3, 1e3, -1e3, 1e3), dimension = c(256, 256), projection = sprintf("+proj=omerc +lon_0=%f +lat_0=%f +datum=WGS84", -77.75791, 24.56158)) plot(warped) longlat <- warp.py(rgba_tif(), extent = 1.2 * c(-1, 1, -1, 1) + rep(c(-77.75791, 24.56158), each = 2L), projection = "OGC:CRS84", dimension = c(256, 256), resample = "cubic") plot(longlat, asp = 1/cos(24.5*pi/180)) maps::map(add = TRUE, col = "firebrick", lwd = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.