Description Usage Arguments Value Examples
Create an extent in Mercator projection from a longitude, latitude, and a width,height.
1 | merc(x = 146.7, y = -42, wh = 256000)
|
x |
longitude |
y |
latitude |
wh |
width and height, in metres - if only one vaue provided it is also used for height |
four values, xmin, xmax, ymin, ymax in global Mercator
1 2 3 4 5 6 7 8 9 10 | merc() ## a parochial default
library(lazyraster)
vearth <- '<GDAL_WMS> <Service name="VirtualEarth">
<ServerUrl>http://a${server_num}.ortho.tiles.virtualearth.net/tiles/a${quadkey}.jpeg?g=90</ServerUrl></Service>
<MaxConnections>4</MaxConnections> <Cache/> </GDAL_WMS>'
lr <- lazyraster(vearth)
## Not run: \donttest{
raster::plotRGB(as_raster(crop(lr, merc(-90, 52, 256e4)), band = 1:3))
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.