Download and Read OpenStreetMap Data Extracts
Find, download, convert and read Open Street Map data extracts obtained from several providers.
View DocumentationBespoke Images of OpenStreetMap Data
Bespoke images of OpenStreetMap (OSM) data and data visualisation using OSM objects.
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.
Scientific use casesSimulating 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
geospatial 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.
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.
Scientific use casesGroup Animal Relocation Data by Spatial and Temporal Relationship
Detects spatial and temporal groups in GPS relocations (Robitaille et al. (2020) 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.
Scientific use casesSetup 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 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 DocumentationParse Messy Geographic Coordinates
Parse geographic coordinates from various 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 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.
Scientific use casesConvert Between WKT and GeoJSON
Convert WKT to GeoJSON and GeoJSON to WKT. Functions included for converting between GeoJSON to WKT, creating both GeoJSON features, and non-features, creating WKT from R objects (e.g., lists, data.frames, vectors), and linting WKT.
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.
Scientific use casesAPI 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 DocumentationPrint Maps, Draw on Them, Scan Them Back in
Print maps, draw on them, scan them back in, and convert to spatial objects.
View DocumentationTools for Validating GeoJSON
Tools for linting GeoJSON. Includes tools for interacting with the online tool http://geojsonlint.com, the Javascript library geojsonhint (https://www.npmjs.com/package/geojsonhint), and validating against a GeoJSON schema via the Javascript library (https://www.npmjs.com/package/is-my-json-valid). Some tools work locally while others require an internet connection.
View DocumentationGenerate Random WKT or GeoJSON
Generate random positions (latitude/longitude), Well-known text (WKT) points or polygons, or GeoJSON points or polygons.
View DocumentationVisualize Species Occurrence Data
Utilities for visualizing species occurrence data. Includes functions to visualize occurrence data from spocc, rgbif, and other packages. Mapping options included for base R plots, ggplot2, leaflet and GitHub gists.
Scientific use casesEmail Address Validation
Email Address Validation.
View DocumentationMarine Regions Data from Marineregions.org
Tools to get marine regions data from http://www.marineregions.org/. Includes tools to get region metadata, as well as data in GeoJSON format, as well as Shape files. Use cases include using data downstream to visualize geospatial data by marine region, mapping variation among different regions, and more.
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.
Scientific use casesA 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 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; linting through the geojsonlint package; and serializing to/from Geobuf binary GeoJSON format.
View DocumentationUtilities to Handle WKT Spatial Data
Utilities to generate bounding boxes from WKT (Well-Known Text) objects and R data types, validate WKT objects and convert object types from the sp package into WKT representations.
Scientific use casesWorld Vector Map Data from Natural Earth Used in rnaturalearth
Vector map data from http://www.naturalearthdata.com/. Access functions are provided in the accompanying package rnaturalearth.
Scientific use casesWorld Map Data from Natural Earth
Facilitates mapping by making natural earth map data from http://www.naturalearthdata.com/ more easily available to R users.
Scientific use casesInterface 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.
Scientific use cases