buildSpatialDataset: buildSpatialDataset

View source: R/buildSpatialDataset.R

buildSpatialDatasetR Documentation

buildSpatialDataset

Description

A function to build a spatial dataset for a given factsheet domain.

Usage

buildSpatialDataset(
  host,
  domain,
  cleanGeom = TRUE,
  cleanStrategy = "BUFFER",
  unionStrategy = "bbox",
  verbose = TRUE,
  ids = NULL,
  runParallel = FALSE,
  runCores = 1,
  exportPartialResults = FALSE,
  exportPath = getwd()
)

Arguments

host

an object of class "character" giving the host

domain

an object of class "character" giving the FIRMS domain

cleanGeom

an object of class "logical" indicating if geometries have to be validated with cleangeo. Default value is TRUE.

cleanStrategy

an object of class "character". Default is 'BUFFER'

unionStrategy

an object of class "character". Accepted values are "union" (pure geoprocessing union - time consuming -), "bbox" (strategy to estimate the largest spatial object to retain, by comparing envelopes, and results much less time consuming). Default value is "bbox".

verbose

an object of class "logical" either logs have to be printed out. Default value is TRUE.

ids

a vector of resource IDs for which the computation has to be run

runParallel

To run code with parallel R interface. Default is FALSE

runCores

Number of cores to use when parallel = TRUE.

exportPartialResults

if partial shapefiles have to be exported Default is FALSE.

exportPath

the path were shapefiles should be exported

Value

an object of class "SpatialPolygonsDataFrame"

Note

end-user function

Author(s)

Emmanuel Blondel, emmanuel.blondel1@gmail.com


openfigis/RFirmsGeo documentation built on Oct. 13, 2022, 9:55 p.m.