A GeoJson Processing Toolkit

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,

 
install.packages("geojsonR")
 
 

and to download the latest version from Github use the install_github function of the devtools package,

 
devtools::install_github('mlampros/geojsonR')
 
 

Use the following link to report bugs/issues,

https://github.com/mlampros/geojsonR/issues

News

geojsonR 1.0.5

I fixed minor typos in the .cpp files

geojsonR 1.0.5

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)

geojsonR 1.0.4

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.

geojsonR 1.0.3

I added the merge_files function.

geojsonR 1.0.2

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.

geojsonR 1.0.1

I added a Vignette and corrected mistakes of the examples in the documentation

geojsonR 1.0.0

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("geojsonR")

1.0.7 by Lampros Mouselimis, 2 months ago


https://github.com/mlampros/geojsonR


Report a bug at https://github.com/mlampros/geojsonR/issues


Browse source code at https://github.com/cran/geojsonR


Authors: Lampros Mouselimis <[email protected]>


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Rcpp, R6

Suggests testthat, covr, knitr, rmarkdown

Linking to Rcpp, RcppArmadillo

System requirements: The package requires a C++11 compiler.


Imported by GeoMongo.


See at CRAN