Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/curycu/geodrawr

An interactive tool for making geospatial objects by clicks on the map
https://github.com/curycu/geodrawr

geospatial leaflet r sf shiny

Last synced: 2 months ago
JSON representation

An interactive tool for making geospatial objects by clicks on the map

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# geodrawr

[![CRAN](https://www.r-pkg.org/badges/version/geodrawr)](https://cran.r-project.org/package=geodrawr)
[![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/geodrawr)](https://www.r-pkg.org/pkg/geodrawr)

An interactive tool for making geo-spatial objects by clicks on the map

## Installation

To install the stable version from CRAN, simply run the following from an R console:

```{r, eval = FALSE}
install.packages('geodrawr')
```

To install the latest development builds directly from GitHub, run this instead:

```{r, eval = FALSE}
if (!require('devtools')) install.packages('devtools')
devtools::install_github('Curycu/geodrawr')
```

## How to Use?

There are three draw tools :

```{r, eval = FALSE}
library(geodrawr)

draw_polygons()
draw_lines()
draw_points()
```

#### case polygons
![draw_polygons](draw_polygons.gif)

- click the map to make edges
- push **Make** button to make a polygon from the edges
- push **Save** button to save polygons as rds file
- push **Load** button to load polygons from rds file

#### case lines
![draw_lines](draw_lines.gif)

- click the map to make edges
- push **Make** button to make a line from the edges
- push **Save** button to save lines as rds file
- push **Load** button to load lines from rds file

#### case points
![draw_points](draw_points.gif)

- click the map to make a point
- push **Save** button to save points on the map as a rds file
- push **Load** button to load points from rds file