buildSpatialObject: buildSpatialObject

View source: R/buildSpatialObject.R

buildSpatialObjectR Documentation

buildSpatialObject

Description

A function to build a spatial object for a given factsheet

Usage

buildSpatialObject(
  item,
  lang,
  host,
  domain,
  wfs,
  cleanGeom = TRUE,
  cleanStrategy = "BUFFER",
  unionStrategy = "bbox",
  verbose = TRUE
)

Arguments

item

an object of class "character" giving the factsheet id

lang

the language in which the factsheet is available

host

an object of class "character" giving the host

domain

an object of class "character" giving the FIRMS domain

wfs

an object of class "WFSClient" from ows4R package

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.

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.