createMapTile: Create a web map tile

Description Usage Arguments Value

Description

Create a web map tile

Usage

1
2
3
createMapTile(x, width, height, xtile, ytile, zoom,
  projection = c("epsg:3857", "mollweide"), method = c("auto", "bilinear",
  "ngb"))

Arguments

x

A Raster object (as created by raster::raster()) with unprojected WGS84 data. It's not required to contain the entire 360-by-180 degree world.

width

The width of the tile to create.

height

The height of the tile to create.

xtile

The x-number of the tile.

ytile

The y-number of the tile.

zoom

The zoom level of the tile.

method

The type of interpolation to use. "auto" (the default) means bilinear when reducing, and nearest neighbor when enlarging.

Value

A Raster object.


jcheng5/rasterfaster documentation built on May 18, 2019, 10:22 p.m.