Create an empty raster for an area. It downloads the area from OSM services, and then creates an empty raster of this area.

osm.CreateEmptyRaster(inPerioxi = "Mytilene Municipal Unit")

Arguments

inPerioxi

The name of an area (string) for searching the OSM services.

Value

An empty raster that covers the full area

Author

Dimitris Kavroudakis dimitris123@gmail.com

Examples

library(devtools)
#> Loading required package: usethis
#install_github("dimitrisk/goal")
library(raster)
#> 
#> Attaching package: ‘raster’
#> The following object is masked from ‘package:tidygraph’:
#> 
#>     select
library(goal)
result = goal::osm.CreateEmptyRaster(inPerioxi="Mytilene Municipal Unit")
result
#> class      : RasterLayer 
#> dimensions : 180, 360, 64800  (nrow, ncol, ncell)
#> resolution : 0.0004453886, 0.0009165467  (x, y)
#> extent     : 26.45563, 26.61597, 39.00806, 39.17304  (xmin, xmax, ymin, ymax)
#> crs        : +proj=longlat +datum=WGS84 +no_defs 
#>