Skip to contents

Generate high-resolution greenspace segmentation using WorldImagery map tiles provided by esri and Sentinel-2 cloudless mosaic tiles provided by EOX.

Usage

get_tile_green(
  bbox = NULL,
  place = NULL,
  zoom = 17,
  provider = "esri",
  year = NULL,
  quiet = TRUE
)

Arguments

bbox

sf, sfc, or a numeric vector (xmin, ymin, xmax, ymax) defining the area of interest. Optional if place is provided.

place

character or vector. (optional) A single line address, e.g. ("1600 Pennsylvania Ave NW, Washington") or a vector of addresses (c("Madrid", "Barcelona")).

zoom

numeric. Zoom level of map tile. The default is 17.

provider

character. One of "esri" and "eox".

year

integer. The desired year for Sentinel-2 cloudless mosaic tiles. (This is required when provider = "eox")

quiet

logical. Whether show progress bars for some process.

Value

A list of two rasters including: greenspace segmentation (where 1 is green and 0 is non-green) and original map tiles

Note

The data derived from Esri WorldImagery may need to include appropriate Esri copyright notice.

Examples

g <- get_tile_green(
 # bbox = c(-83.087174,42.333373,-83.042542,42.358748),
 zoom = 15
)