creates a FeatureCollection dump from multiple Feature geojson objects

Features_2Collection(
  Features_files_vec,
  bbox_vec = NULL,
  write_path = NULL,
  verbose = FALSE
)

Arguments

Features_files_vec

a character vector specifying paths to files (Feature geojson objects)

bbox_vec

either NULL or a numeric vector

write_path

either NULL or a character string specifying a valid path to a file ( preferably with a .geojson extension ) where the output data will be saved

verbose

a boolean. If TRUE then information will be printed out in the console

Value

a FeatureCollection dump

Details

The Features_2Collection function utilizes internally a for-loop. In case of an error set the verbose parameter to TRUE to find out which file leads to this error.

Examples

if (FALSE) { library(geojsonR) vec_files = c("/myfolder/Feature1.geojson", "/myfolder/Feature2.geojson", "/myfolder/Feature3.geojson", "/myfolder/Feature4.geojson", "/myfolder/Feature5.geojson") res = Features_2Collection(vec_files, bbox_vec = NULL) }