Convert 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 DocumentationImport 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 DocumentationDownload and Import Open Street Map Data Extracts
Match, download, convert and import Open Street Map data extracts obtained from several providers.
View DocumentationGroup 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.
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 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 DocumentationMarine Regions Data from Marineregions.org
Tools to get marine regions data from https://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 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 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 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 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 DocumentationBespoke Images of OpenStreetMap Data
Bespoke images of OpenStreetMap (OSM) data and data visualisation using OSM objects.
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 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 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 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 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 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 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 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 DocumentationConvert 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 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 DocumentationWorld 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.
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