Includes functions for processing GeoJson objects < https://en.wikipedia.org/wiki/GeoJSON> relying on 'RFC 7946' < https://tools.ietf.org/pdf/rfc7946.pdf>. The geojson encoding is based on 'json11', a tiny JSON library for 'C++11' < https://github.com/dropbox/json11>. Furthermore, the source code is exported in R through the 'Rcpp' and 'RcppArmadillo' packages.
The geojsonR package includes functions for processing GeoJson objects relying on RFC 7946. The geojson encoding is based on json11, a tiny JSON library for C++11. Furthermore, the source code is exported in R through the Rcpp and RcppArmadillo packages. More details on the functionality of geojsonR can be found in the package Documentation and Vignette.
To install the package from CRAN use,
and to download the latest version from Github use the install_github function of the devtools package,
Use the following link to report bugs/issues,
I fixed minor typos in the .cpp files
I modified the R functions which made a connection to Url's (previously the connection was not closed in an appropriate way producing that way a warning)
I modified the Makevars files to allow OpenMP usage. The geojsonR package is not parallelized, however the Armadillo library uses OpenMP internally to improve the execuction time of the functions.
I added the merge_files function.
I added the FROM_GeoJson_Schema function. This function is appropriate when the property-names do not match exactly the RFC 7946 specification ( for instance if the geometry-object-name appears as location, as is the case sometimes in mongodb queries ). This way one can avoid unnecessary errors when reading geojson files/strings.
I added a Vignette and corrected mistakes of the examples in the documentation