├── .gitignore ├── .travis.yml ├── geospatial.Rproj ├── Dockerfile └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | .Rhistory 3 | .RData 4 | .Ruserdata 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | services: 2 | - docker 3 | before_install: 4 | - docker build -t geospatial . 5 | script: 6 | - docker run -ti geospatial R --version | grep -q "3." 7 | - docker run -ti geospatial R -e 'library(sf)' 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /geospatial.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: Default 4 | SaveWorkspace: Default 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 2 10 | Encoding: UTF-8 11 | 12 | RnwWeave: knitr 13 | LaTeX: pdfLaTeX 14 | 15 | BuildType: Makefile 16 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM rocker/verse:3.6.3 2 | MAINTAINER "Carl Boettiger" cboettig@ropensci.org 3 | 4 | RUN apt-get update \ 5 | && apt-get install -y --no-install-recommends \ 6 | lbzip2 \ 7 | libfftw3-dev \ 8 | libgdal-dev \ 9 | libgeos-dev \ 10 | libgsl0-dev \ 11 | libgl1-mesa-dev \ 12 | libglu1-mesa-dev \ 13 | libhdf4-alt-dev \ 14 | libhdf5-dev \ 15 | libjq-dev \ 16 | liblwgeom-dev \ 17 | libpq-dev \ 18 | libproj-dev \ 19 | libprotobuf-dev \ 20 | libnetcdf-dev \ 21 | libsqlite3-dev \ 22 | libssl-dev \ 23 | libudunits2-dev \ 24 | netcdf-bin \ 25 | postgis \ 26 | protobuf-compiler \ 27 | sqlite3 \ 28 | tk-dev \ 29 | unixodbc-dev 30 | 31 | RUN install2.r --error \ 32 | RColorBrewer \ 33 | RandomFields \ 34 | RNetCDF \ 35 | classInt \ 36 | deldir \ 37 | gstat \ 38 | hdf5r \ 39 | lidR \ 40 | mapdata \ 41 | maptools \ 42 | mapview \ 43 | ncdf4 \ 44 | proj4 \ 45 | raster \ 46 | rgdal \ 47 | rgeos \ 48 | rlas \ 49 | sf \ 50 | sp \ 51 | spacetime \ 52 | spatstat \ 53 | spdep \ 54 | geoR \ 55 | geosphere \ 56 | ## from bioconductor 57 | && R -e "BiocManager::install('rhdf5', update=FALSE, ask=FALSE)" 58 | 59 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # rocker/geospatial 2 | 3 | [![DOI](https://zenodo.org/badge/85984414.svg)](https://zenodo.org/badge/latestdoi/85984414) 4 | 5 | ***Dockerfiles & documentation for images `r-ver`, `rstudio`, `tidyverse`, `verse`, `geospatial`, `shiny`, and `binder`, for R >= 4.0.0, HAVE MOVED to the [`rocker-versioned2` repository](https://github.com/rocker-org/rocker-versioned2).*** 6 | 7 | Docker-based Geospatial toolkit for R, built on versioned Rocker images. 8 | 9 | This image extends the [`rocker-versioned` stack](https://github.com/rocker-org/rocker-versioned) with geospatial-related tools, particularly those that can be difficult or slow to add on-the-fly. As such, this image includes RStudio, the tidyverse packages, and `verse` libraries (notably LaTeX and JAVA environments). Like the rest of the `rocker-versioned` stack, tags for specific recent versions, including the `latest` and `devel` tags, are also provided. Versions older than the most recent will install R packages from an MRAN snapshot, and may not provide all the same packages as seen on the most recent versions. 10 | 11 | 12 | 13 | ## Packages 14 | 15 | 16 | The packages included in this image are not meant to provide a kitchen-sink of all geo-spatially related R packages, see the [Spatial Task View](https://cran.r-project.org/web/views/Spatial.html) and [SpatioTemporal Task View](https://cran.r-project.org/web/views/SpatioTemporal.html) on CRAN. This image seeks to provide a more opinionated collection of packages, prioritizing those packages that can be slow or tricky to install due to compiled code and external dependencies, and with an emphasis on more general-purpose libraries and classes. 17 | 18 | Please note that many additional geospatial (and other) packages are pulled in as dependencies of this list and thus can also be found on the image. Feel free to request any additional packages you would like to see added by [filing an issue](https://github.com/rocker-org/geospatial/issues). 19 | 20 | Package | Maintainer| Description 21 | --------------|-----------|---------------------------------- 22 | RColorBrewer | | Colors for maps and other plots 23 | RandomFields |Schlather | Methods for the inference on and the simulation of Gaussian fields, and simulation of extreme value random fields. 24 | RNetCDF | Woods | Bindings to C API NetCDF library, with udunits 25 | classInt | Bivand | Selected commonly used methods for choosing univariate class intervals for mapping or other graphics purposes. 26 | deldir | Turner | Delaunay Triangulation and Dirichlet (Voronoi) Tessellation 27 | gstat | Pebesma | Spatial and Spatio-Temporal Geostatistical Modelling, Prediction and Simulation 28 | hdf5r | Hoefling | Modern bindings to HF5 C API (replaces hf package) 29 | lidR | Roussel | Airborne LiDAR (Light Detection and Ranging) interface for data manipulation and visualization. Read/write 'las' and 'laz' file 30 | mapdata | Deckmyn | Extra map data for the `maps` package (originally from S) 31 | maptools | Bivand | Set of tools for manipulating and reading geographic data, in particular ESRI Shapefiles. (See `rgdal` and `sf` for more comprehensive I/O) 32 | mapview | Appelhans | sf-compatible interactive map viewer, extends leaflet 33 | ncdf4 | Pierce | `raster`-package compatible netcdf bindings 34 | proj4 | Urbanek | A simple interface to lat/long projection and datum transformation. See `sf` implementation as well. 35 | raster | Hijmans | Reading, writing, manipulating, analyzing and modeling of gridded spatial data. 36 | rgdal | Bivand | Interface to GDAL, I/O formats. See `sf` for more recent implementation 37 | rgeos | Bivand | Interface to GEOS (geometry operations). See `sf` for more recent implementation 38 | sf | Pebesma | Simple-features oriented replacement for sp, rgdal, rgeos, and proj4 libraries, includes dplyr-style methods. 39 | sp | Pebesma | Original & widely used spatial object class 40 | spacetime | Pebesma | Classes and Methods for Spatio-Temporal Data 41 | spatstat | Baddeley | Large spatial statistics package: Spatial Point Pattern Analysis, Model-Fitting, Simulation, Tests 42 | spatialreg | Bivand | Spatial Regression Analysis: Spatatial Autregressive Models (formerly in spdep) 43 | spdep | Bivand | Spatial Dependence: Weighting Schemes, Statistics and Models 44 | tmap | Tennekes | Thematic, layer-based maps (sf and sp compatible) 45 | geoR | Ribeiro | Geostatistical analysis including traditional, likelihood-based and Bayesian methods. 46 | geosphere | Hijmans | Spherical trigonometry for geographic applications. That is, compute distances and related measures for angular (longitude/latitude) locations. 47 | 48 | 49 | --------------------------------------------------------------------------------