CreateMask: Raster Mask of the Trentino Region

Description Usage Arguments Details Examples

Description

Raster Mask of the Trentino Region

Usage

1
2
3
4
5
CreateMask(dsn = NULL, layer,
  url = "http://dati.trentino.it/storage/f/2013-05-09T141315/788_Comuni_amministrativi___DB_Prior_10k__12_12_2011_4uWD8r.zip",
  zip = FALSE, clean = FALSE, option = list(NOME_PROV = "TRENTO"),
  rasterRes = 500, raster = NULL, field = "COM",
  filename = "maskXYRES.grd", valuesFromRaster = TRUE, ...)

Arguments

dsn

see readOGR

layer

see readOGR

url

adress used for the download of data

zip

logical value. Default is FALSE. If TRUE the dowloaded file is unzipped after downloadig. See Details.

clean

logical value. Default is FALSE. (experimental).

option

list of object, e.g. fields and related values corresponded to the selected polygons.

raster

Raster* or NULL object used for rasterization. Default is NULL, see rasterize.

rasterRes

Raster Resolution in x and y (meters or degrees). It is used to create a Raster* for rasterization in case the argument raster is NULL.

field

see rasterize

filename

filename where ...

valuesFromRaster

logical value. If it is TRUE(Default), it fills the values within the mask with the ones of the raster map given by raster.

...

futher arguments for readOGR

Details

In case of downloaded from an URL, the file is automatically unzipped if a zip archive wth .zip extenstion.

Examples

1
2
3
4
5
library(stringr)
library(rgdal)
library(raster)

mask <- CreateMask() ## see default in Usage

ecor/geographyTrentinoVis documentation built on May 15, 2019, 8:54 p.m.