kiliAerial: Retrieve a Bing (or Google) Maps Aerial Image

View source: R/kiliAerial.R

kiliAerialR Documentation

Retrieve a Bing (or Google) Maps Aerial Image

Description

Retrieve a Bing Maps aerial image centered on the Kilimanjaro region, Tanzania, by default. This image is aligned with the 1/12-degree AVHRR GIMMS NDVI grid covering the region. As an alternative, image retrieval is also available through Google Maps which is switched on automatically if the OpenStreetMap package is not available.

Usage

kiliAerial(
  upperLeft,
  lowerRight,
  template = NULL,
  projection = "+init=epsg:4326",
  type = "bing",
  ...
)

Arguments

upperLeft, lowerRight

numeric. Bounding box coordinates in the form c(lat, long). If not specified and 'template' is missing, the resulting image defaults to the spatial extent of the study area covered in Detsch et al. (2016; see References).

template

Extent, or any object from which an Extent can be extracted, see crop.

projection

character, defaults to "+init=epsg:4326" (http://spatialreference.org/ref/epsg/wgs-84/). Desired coordinate reference system of the retrieved image.

type

character. Tile server from which to download data, defaults to "bing" (only valid if package OpenStreetMap is available). See openmap and gmap for currently available options.

...

Additional arguments passed to the underlying download functions, except for 'rgb' in gmap which is set TRUE.

Value

A 3-layered RGB RasterStack.

Author(s)

Florian Detsch

References

Detsch F, Otte I, Appelhans T, Hemp A, Nauss T (2016) Seasonal and long-term vegetation dynamics from 1-km GIMMS-based NDVI time series at Mt. Kilimanjaro, Tanzania. Remote Sensing of Environment 178: 70-83, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.rse.2016.03.007")}.

See Also

openmap and openproj in OpenStreetMap, gmap.

Examples

 
## Not run: 
img <- kiliAerial(minNumTiles = 12L, projection = "+init=epsg:21037")
plotRGB(img)

## End(Not run)          
                   

environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.