Package: edr4r 0.3.0

edr4r: Client for OGC API - Environmental Data Retrieval (EDR)

A tidy R client for services implementing the OGC API - Environmental Data Retrieval ('EDR') standard with JSON discovery and 'GeoJSON', 'CoverageJSON', or 'CSV' query responses. General purpose, but most of its real-world use is against in-situ monitoring networks (stream gauges, weather stations, snow and reservoir telemetry) that expose their stations and time series as EDR collections. Known working endpoints include the USGS waterdata OGC API and the Western Water Datahub. Provides cached capability and instance discovery, endpoint diagnostics, and query/parsing helpers for the locations, items, position, area, cube, radius, trajectory, and corridor query types. Supports bounded 'GeoJSON' pagination and finite sequential, resumable pulls for explicit sets of monitoring locations. Converts 'CoverageJSON' to tidy 'tibble' rows, parses 'CSV' as tibbles, and converts 'GeoJSON' to 'sf' objects.

Authors:Kyle Onda [aut, cre, cph]

edr4r_0.3.0.tar.gz
edr4r_0.3.0.zip(r-4.7-any)edr4r_0.3.0.zip(r-4.6-any)edr4r_0.3.0.zip(r-4.5-any)
edr4r_0.3.0.tgz(r-4.6-any)edr4r_0.3.0.tgz(r-4.5-any)
edr4r_0.3.0.tar.gz(r-4.7-any)edr4r_0.3.0.tar.gz(r-4.6-any)
edr4r_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
edr4r/json (API)

# Install 'edr4r' in R:
install.packages('edr4r', repos = c('https://ksonda.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ksonda/edr4r/issues

Pkgdown/docs site:https://ksonda.github.io

On CRAN:

Conda:

5.16 score 12 scripts 197 downloads 32 exports 19 dependencies

Last updated from:3a26aebbb2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK170
source / vignettesOK221
linux-releaseOK167
macos-releaseOK187
macos-oldrelOK184
windows-develOK118
windows-releaseOK98
windows-oldrelOK115
wasm-releaseOK124

Exports:covjson_to_tibbleedr_add_stationsedr_areaedr_cache_clearedr_capabilitiesedr_clientedr_collectionedr_collectionsedr_conformanceedr_corridoredr_cubeedr_diagnoseedr_exploreedr_instanceedr_instancesedr_itemedr_itemsedr_landingedr_locationedr_location_batchedr_locationsedr_mapedr_parametersedr_plotedr_positionedr_queryablesedr_radiusedr_requestedr_save_htmledr_supportsedr_trajectorygeojson_to_sf

Dependencies:askpassclicurlgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigpurrrR6rlangsystibbleutf8vctrswithr

Getting started with edr4r
Installation | 1. Create a client | Try a second EDR implementation | 2. Discover collections and parameters | 3. Find locations | 4. Retrieve data for one station | Retrieve several explicit stations | 5. Plot the time series | 6. Map stations with per-station popups | A few things worth knowing | See also

Last update: 2026-07-14
Started: 2026-05-31

Mapping Lake Mead data across three EDR services
1. Create the clients and check the collections | 2. Build two grid facets | 3. Retrieve the station series | 4. Compare the water variables in separate facets | 5. Inspect the coverage shapes | 6. Build the map with selectable grid facets

Last update: 2026-07-14
Started: 2026-07-10

EDR compatibility and supported scope
Client support | Return and failure contract | Inspect before querying | Verified endpoints | Frozen and live checks | What "supports EDR" means here

Last update: 2026-07-12
Started: 2026-07-10

USGS streamgages: bounded discovery and mapping
1. Connect and discover collections | Discovering parameters | 2. Find streamgages in a bounded study area | 3. Pull streamflow for one station | 4. Map every gauge with per-station popups | A few things worth knowing about the USGS endpoint | See also

Last update: 2026-07-11
Started: 2026-06-01

Readme and manuals

Help Manual

Help pageTopics
Convert a CoverageJSON response to a tidy tibblecovjson_to_tibble
Add station layers to an EDR mapedr_add_stations
Area query (data inside a polygon)edr_area
Clear cached EDR discovery metadataedr_cache_clear
Inspect advertised EDR capabilitiesedr_capabilities
Create an EDR clientedr_client
Get a single collection's metadataedr_collection
List collections offered by the serviceedr_collections
Declared OGC API conformance classesedr_conformance
Corridor query (data along a path with a width)edr_corridor
Cube query (data inside a bounding box)edr_cube
Diagnose an EDR endpoint's discovery surfaceedr_diagnose
One-shot fetch + plot + map for a collectionedr_explore
List instances of an EDR collectionedr_instance edr_instances
Items (OGC API Features) helpersedr_item edr_items
EDR service landing pageedr_landing
Get data for a single locationedr_location
Fetch data for multiple EDR locationsedr_location_batch
List locations in a collectionedr_locations
Map EDR locations or coverage dataedr_map
List the data parameters a collection servesedr_parameters
Plot an EDR response as a ggplotedr_plot
Position query (data at a point)edr_position
Get the queryables (filter properties) for a collectionedr_queryables
Radius query (data within a radius of a point)edr_radius
Perform a low-level EDR requestedr_request
Save a map to a standalone HTML fileedr_save_html
Test an advertised EDR capabilityedr_supports
Trajectory query (data along a path)edr_trajectory
Convert a GeoJSON EDR response to an 'sf' objectgeojson_to_sf