https://github.com/livelihoods-and-landscapes/maplandscape
Shiny application to explore geospatial data
https://github.com/livelihoods-and-landscapes/maplandscape
Last synced: 4 months ago
JSON representation
Shiny application to explore geospatial data
- Host: GitHub
- URL: https://github.com/livelihoods-and-landscapes/maplandscape
- Owner: livelihoods-and-landscapes
- License: gpl-3.0
- Created: 2021-08-11T07:19:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T02:27:36.000Z (about 2 years ago)
- Last Synced: 2024-06-04T23:02:44.429Z (10 months ago)
- Language: R
- Homepage: https://livelihoods-and-landscapes.com/maplandscape
- Size: 62.4 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - livelihoods-and-landscapes/maplandscape - Shiny application to explore geospatial data (R)
README
# maplandscape
## Overview
A package that provides functions for building [Shiny](https://shiny.rstudio.com) dashboard applications to explore and visualise layers (tables) in GeoPackages. It focuses on providing tools for quick analysis of data collected in-the-field using the [QField](https://qfield.org) mobile GIS application and stored in GeoPackages in QFieldCloud.
A pre-built [Shiny](https://shiny.rstudio.com) application is provided with this package which uses these functions and provides tools for:
* Exploring GeoPackage layers in interactive tables, web maps, and charts.
* Customising and styling charts and web maps.
* Combining layers using spatial and non-spatial joins.
* Generating summary tables through group-by and summarise operations.
* Generating new layers and add new columns to existing layers.
* Authenticated access to GeoPackages stored in QFieldCloud.This package was developed as part of the [Livelihoods and Landscapes](https://livelihoods-and-landscapes.com) project which is developing tools and approaches to map diverse agricultural landscapes.
## Setup
### Local R Package
Clone the maplandscape repo:
```
git clone https://github.com/livelihoods-and-landscapes/maplandscape.git
```Move into the maplandscape directory:
```
cd maplandscape
```maplandscape requires an instance of PostGIS. Deploy a local PostGIS instance using docker:
```
cd inst/postgis
docker compose up -d
```Make sure the PostGIS configuration in `inst/app/config` matches what is specified in the `docker-compose.yml` file.
Move the root of the maplandscape repo. Launch the app:
```
cd ../..
shiny::runApp("inst/app")
```### Docker and deploy to the cloud
You can also deploy maplandscape to the cloud using Shiny Proxy, docker, and docker swarm by following the instructions [here](https://github.com/livelihoods-and-landscapes/deploy-maplandscape).