Learn R Programming

geojsonR

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 blog-post and in the package 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 remotes package,


remotes::install_github('mlampros/geojsonR')

Use the following link to report bugs/issues,

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

Citation:

If you use the code of this repository in your paper or research please cite both geojsonR and the original articles / software https://CRAN.R-project.org/package=geojsonR:

@Manual{,
  title = {{geojsonR}: A GeoJson Processing Toolkit},
  author = {Lampros Mouselimis},
  year = {2021},
  note = {R package version 1.1.2},
  url = {https://CRAN.R-project.org/package=geojsonR},
}

Copy Link

Version

Install

install.packages('geojsonR')

Monthly Downloads

619

Version

1.1.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Lampros Mouselimis

Last Published

January 13th, 2025

Functions in geojsonR (1.1.2)

FROM_GeoJson_Schema

reads GeoJson data using a one-word-schema
FROM_GeoJson

reads GeoJson data
Features_2Collection

creates a FeatureCollection dump from multiple Feature geojson objects
Dump_From_GeoJson

returns a json-dump from a geojson file
TO_GeoJson

converts data to a GeoJson object
shiny_from_JSON

secondary function for shiny Applications
merge_files

merge json files (or any kind of text files) from a directory
save_R_list_Features_2_FeatureCollection

creates a FeatureCollection from R list objects ( see the details section about the limitations of this function )