Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mlampros/GeoMongo

Geospatial Queries Using PyMongo in R
https://github.com/mlampros/GeoMongo

geojson mongodb pymongo r reticulate

Last synced: about 2 months ago
JSON representation

Geospatial Queries Using PyMongo in R

Awesome Lists containing this project

README

        

[![tic](https://github.com/mlampros/GeoMongo/workflows/tic/badge.svg?branch=master)](https://github.com/mlampros/GeoMongo/actions)
[![codecov.io](https://codecov.io/github/mlampros/GeoMongo/coverage.svg?branch=master)](https://codecov.io/github/mlampros/GeoMongo?branch=master)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/GeoMongo)](http://cran.r-project.org/package=GeoMongo)
[![Downloads](http://cranlogs.r-pkg.org/badges/grand-total/GeoMongo?color=blue)](http://www.r-pkg.org/pkg/GeoMongo)
Buy Me A Coffee
[![Dependencies](https://tinyverse.netlify.com/badge/GeoMongo)](https://cran.r-project.org/package=GeoMongo)

## GeoMongo

The **GeoMongo** package utilizes methods of the [*PyMongo*](https://github.com/mongodb/mongo-python-driver) 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*](https://www.mongodb.com/) (bulk) commands. The [*reticulate*](https://github.com/rstudio/reticulate) package provides the R interface to Python modules, classes and functions. More details on the functionality of GeoMongo can be found in the [blog post](http://mlampros.github.io/2017/08/07/the_GeoMongo_package/) and in the package Vignette.


### **System Requirements**


* [MongoDB (>= 3.4.0)](https://docs.mongodb.com/manual/installation/)

* Python (>= 2.7) [ preferably python 3 because Python 2.7 will reach the end of its life on January 1st, 2020 ]

* [PyMongo](https://github.com/mongodb/mongo-python-driver#installation) (to install use : **python3 -m pip install --upgrade pymongo**)

* [jsonschema](https://pypi.org/project/jsonschema/) (to install use : **pip3 install jsonschema --ignore-installed six**)


### **Installation of the GeoMongo package**


To install the package from CRAN use,

```R

install.packages('GeoMongo')

```

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


```R

devtools::install_github(repo = 'mlampros/GeoMongo')

```


Use the following link to report bugs/issues,


[https://github.com/mlampros/GeoMongo/issues](https://github.com/mlampros/GeoMongo/issues)


### **Citation:**

If you use the **GeoMongo** R package in your paper or research please cite [https://CRAN.R-project.org/package=GeoMongo](https://CRAN.R-project.org/package=GeoMongo):


```R
@Manual{,
title = {{GeoMongo}: Geospatial Queries Using 'PyMongo' in R},
author = {Lampros Mouselimis},
year = {2021},
note = {R package version 1.0.3},
url = {https://CRAN.R-project.org/package=GeoMongo},
}
```