Utilizes methods of the 'PyMongo' 'Python' library to initialize, insert and query 'GeoJson' data (see < https://github.com/mongodb/mongo-python-driver> for more information on 'PyMongo'). Furthermore, it allows the user to validate 'GeoJson' objects and to use the console for 'MongoDB' (bulk) commands. The 'reticulate' package provides the 'R' interface to 'Python' modules, classes and functions.
The GeoMongo package utilizes methods of the PyMongo Python library to initialize, insert and query GeoJson data. Furthermore, it allows the user to validate GeoJson objects and to use the console for MongoDB (bulk) commands. The reticulate package provides the R interface to Python modules, classes and functions. More details on the functionality of GeoMongo can be found in the package Vignette.
Python (>= 2.7)
PyMongo (to install use : python -m pip install pymongo)
jsonschema (to install use : python -m pip install jsonschema)
To install the package from CRAN use,
and to download the latest version from Github use the install_github function of the devtools package,
devtools::install_github(repo = 'mlampros/GeoMongo')
I fixed a bug in the geoInsert method of the geomongo class (replaced file.exists() with dir.exists() for a folder of files). I added an ellipsis in mongodb_console() function to allow for additional parameters for the system() (unix) and shell() (windows) command line functions.