Import OpenStreetMap Data as Simple Features or Spatial Objects
Download and import of OpenStreetMap (OSM) data as sf or sp objects. OSM data are extracted from the Overpass web server (https://overpass-api.de/) and processed with very fast C++ routines for return to R.
View DocumentationGroup Animal Relocation Data by Spatial and Temporal Relationship
Detects spatial and temporal groups in GPS relocations (Robitaille et al. (2019) doi:10.1111/2041-210X.13215). It can be used to convert GPS relocations to gambit-of-the-group format to build proximity-based social networks In addition, the randomizations function provides data-stream randomization methods suitable for GPS data.
View DocumentationDownload and Import Open Street Map Data Extracts
Match, download, convert and import Open Street Map data extracts obtained from several providers.
View DocumentationCreate Geographic and Non-Geographic Map Tiles
Creates geographic map tiles from geospatial map files or non-geographic map tiles from simple image files. This package provides a tile generator function for creating map tile sets for use with packages such as leaflet. In addition to generating map tiles based on a common raster layer source, it also handles the non-geographic edge case, producing map tiles from arbitrary images. These map tiles, which have a non-geographic, simple coordinate reference system (CRS), can also be used with leaflet when applying the simple CRS option. Map tiles can be created from an input file with any of the following extensions: tif, grd and nc for spatial maps and png, jpg and bmp for basic images. This package requires Python and the gdal library for Python. Windows users are recommended to install OSGeo4W (https://trac.osgeo.org/osgeo4w/) as an easy way to obtain the required gdal support for Python.
View DocumentationOpenStreetMap API
Interface to OpenStreetMap API for fetching and saving data from/to the OpenStreetMap database (https://wiki.openstreetmap.org/wiki/API_v0.6).
View DocumentationCalculate Slopes of Roads, Rivers and Trajectories
Functions and example data to support research into the slope (also known as longitudinal gradient or steepness) of linear geographic entities such as roads doi:10.1038/s41597-019-0147-x and rivers doi:10.1016/j.jhydrol.2018.06.066. The package was initially developed to calculate the steepness of street segments but can be used to calculate steepness of any linear feature that can be represented as LINESTRING geometries in the sf class system. The package takes two main types of input data for slope calculation: vector geographic objects representing linear features, and raster geographic objects with elevation values (which can be downloaded using functionality in the package) representing a continuous terrain surface. Where no raster object is provided the package attempts to download elevation data using the ceramic package.
View DocumentationSimulating Neutral Landscape Models
Provides neutral landscape models (doi:10.1007/BF02275262, http://sci-hub.tw/10.1007/bf02275262). Neutral landscape models range from “hard” neutral models (completely random distributed), to “soft” neutral models (definable spatial characteristics) and generate landscape patterns that are independent of ecological processes. Thus, these patterns can be used as null models in landscape ecology. NLMR combines a large number of algorithms from other published software for simulating neutral landscapes. The simulation results are obtained in a spatial data format (raster* objects from the raster package) and can, therefore, be used in any sort of raster data operation that is performed with standard observation data.
View DocumentationDerive Soil Moisture Using the OPTRAM Algorithm
The OPtical TRapezoid Model (OPTRAM) derives soil moisture based on the linear relation between a vegetation index and Land Surface Temperature (LST). The Short Wave Infra-red (SWIR) band is used as a proxy for LST. See: Sadeghi, M. et al., 2017. https://doi.org/10.1016/j.rse.2017.05.041 .
View DocumentationA Tidy Approach to NetCDF Data Exploration and Extraction
Tidy tools for NetCDF data sources. Explore the contents of a NetCDF source (file or URL) presented as variables organized by grid with a database-like interface. The hyper_filter() interactive function translates the filter value or index expressions to array-slicing form. No data is read until explicitly requested, as a data frame or list of arrays via hyper_tibble() or hyper_array().
View DocumentationWorld Map Data from Natural Earth
Facilitates mapping by making natural earth map data from https://www.naturalearthdata.com/ more easily available to R users.
View DocumentationSetup and connect to OpenTripPlanner
Setup and connect to OpenTripPlanner (OTP) http://www.opentripplanner.org/. OTP is an open source platform for multi-modal and multi-agency journey planning written in Java. The package allows you to manage a local version or connect to remote OTP server to find walking, cycling, driving, or transit routes. This package has been peer-reviewed by rOpenSci (v. 0.2.0.0).
View DocumentationPrint Maps, Draw on Them, Scan Them Back in
Enables preparation of maps to be printed and drawn on. Modified maps can then be scanned back in, and hand-drawn marks converted to spatial objects.
View DocumentationBespoke Images of OpenStreetMap Data
Bespoke images of OpenStreetMap (OSM) data and data visualisation using OSM objects.
View DocumentationErgonomic Methods for Assessing Spatial Models
Assessing predictive models of spatial data can be challenging, both because these models are typically built for extrapolating outside the original region represented by training data and due to potential spatially structured errors, with “hot spots” of higher than expected error clustered geographically due to spatial structure in the underlying data. Methods are provided for assessing models fit to spatial data, including approaches for measuring the spatial structure of model errors, assessing model predictions at multiple spatial scales, and evaluating where predictions can be made safely. Methods are particularly useful for models fit using the tidymodels framework. Methods include Morans I (Moran (1950) doi:10.2307/2332142), Gearys C (Geary (1954) doi:10.2307/2986645), Getis-Ords G (Ord and Getis (1995) doi:10.1111/j.1538-4632.1995.tb00912.x), agreement coefficients from Ji and Gallo (2006) ([doi: 10.14358/PERS.72.7.823](https://doi.org/ 10.14358/PERS.72.7.823)), agreement metrics from Willmott (1981) ([doi: 10.1080/02723646.1981.10642213](https://doi.org/ 10.1080/02723646.1981.10642213)) and Willmott et al. (2012) ([doi: 10.1002/joc.2419](https://doi.org/ 10.1002/joc.2419)), an implementation of the area of applicability methodology from Meyer and Pebesma (2021) (doi:10.1111/2041-210X.13650), and an implementation of multi-scale assessment as described in Riemann et al’. (2010) (doi:10.1016/j.rse.2010.05.010).
View DocumentationLandscape Visualizations in R and Unity
Functions for the retrieval, manipulation, and visualization of geospatial data, with an aim towards producing 3D landscape visualizations in the Unity 3D rendering engine. Functions are also provided for retrieving elevation data and base map tiles from the USGS National Map https://apps.nationalmap.gov/services/.
View DocumentationDealing with Multiplatform Satellite Images
Downloading, customizing, and processing time series of satellite images for a region of interest. rsat functions allow a unified access to multispectral images from Landsat, MODIS and Sentinel repositories. rsat also offers capabilities for customizing satellite images, such as tile mosaicking, image cropping and new variables computation. Finally, rsat covers the processing, including cloud masking, compositing and gap-filling/smoothing time series of images (Militino et al., 2018 doi:10.3390/rs10030398 and Militino et al., 2019 doi:10.1109/TGRS.2019.2904193).
View DocumentationTools for converting QuadKey-identified datasets (Microsoft's Bing Maps Tile System) into raster images and analyzing Meta (Facebook) Mobility Data.
Quadkeyr functions generate raster images based on QuadKey-identified data, facilitating efficient integration of Tile Maps data into R workflows. In particular, Quadkeyr provides support to process and analyze Facebook mobility datasets within the R environment.
View DocumentationWorld Vector Map Data from Natural Earth Used in rnaturalearth
Vector map data from https://www.naturalearthdata.com/. Access functions are provided in the accompanying package rnaturalearth.
View DocumentationA Unifying API for Calling the Unity 3D Video Game Engine
Functions for the creation and manipulation of scenes and objects within the Unity 3D video game engine (https://unity.com/). Specific focuses include the creation and import of terrain data and GameObjects as well as scene management.
View DocumentationConvert Data from and to GeoJSON or TopoJSON
Convert data to GeoJSON or TopoJSON from various R classes, including vectors, lists, data frames, shape files, and spatial classes. geojsonio does not aim to replace packages like sp, rgdal, rgeos, but rather aims to be a high level client to simplify conversions of data from and to GeoJSON and TopoJSON.
View DocumentationClasses for GeoJSON
Classes for GeoJSON to make working with GeoJSON easier. Includes S3 classes for GeoJSON classes with brief summary output, and a few methods such as extracting and adding bounding boxes, properties, and coordinate reference systems; working with newline delimited GeoJSON; and serializing to/from Geobuf binary GeoJSON format.
View DocumentationMoving-Window and Direct Data Aggregation
Data aggregation via moving window or direct methods. Aggregate a fine-resolution raster to a grid. The moving window method smooths the surface using a specified function within a moving window of a specified size and shape prior to aggregation. The direct method simply aggregates to the grid using the specified function.
View DocumentationAPI Wrapper Around Postcodes.io
Free UK geocoding using data from Office for National Statistics. It is using several functions to get information about post codes, outward codes, reverse geocoding, nearest post codes/outward codes, validation, or randomly generate a post code. API wrapper around https://postcodes.io.
View DocumentationParse Messy Geographic Coordinates
Parse messy geographic coordinates from various character formats to decimal degree numeric values. Parse coordinates into their parts (degree, minutes, seconds); calculate hemisphere from coordinates; pull out individually degrees, minutes, or seconds; add and subtract degrees, minutes, and seconds. C++ code herein originally inspired from code written by Jeffrey D. Bogan, but then completely re-written.
View DocumentationGeocode with the OpenCage API
Geocode with the OpenCage API, either from place name to longitude and latitude (forward geocoding) or from longitude and latitude to the name and address of a location (reverse geocoding), see https://opencagedata.com.
View DocumentationLandscape Utility Toolbox
Provides utility functions for some of the less-glamorous tasks involved in landscape analysis. It includes functions to coerce raster data to the common tibble format and vice versa, it helps with flexible reclassification tasks of raster data and it provides a function to merge multiple raster. Furthermore, landscapetools helps landscape scientists to visualize their data by providing optional themes and utility functions to plot single landscapes, rasterstacks, -bricks and lists of raster.
View DocumentationInterface to the "Geonames" Spatial Query Web Service
The web service at https://www.geonames.org/ provides a number of spatial data queries, including administrative area hierarchies, city locations and some country postal code queries. A (free) username is required and rate limits exist.
View Documentation