View source: R/buildSpatialDataset.R
buildSpatialDataset | R Documentation |
A function to build a spatial dataset for a given factsheet domain.
buildSpatialDataset( host, domain, cleanGeom = TRUE, cleanStrategy = "BUFFER", unionStrategy = "bbox", verbose = TRUE, ids = NULL, runParallel = FALSE, runCores = 1, exportPartialResults = FALSE, exportPath = getwd() )
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 |
an object of class "SpatialPolygonsDataFrame"
end-user function
Emmanuel Blondel, emmanuel.blondel1@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.