README.md

sta4R

Description

R Client for OGC SensorThings API (STA)

Easing the management of and access to environmental time series data from an OGC SensorThings API (STA)

sta4R is a package for R. The user can also use it to query data from any standard STA instance using R functions, providing R users a convenient way to integrate data from STA servers into analysis workflows. This functionality is inspired by the 52 North package sos4R, which provides similar capabilities for the OGC Sensor Observation Service (SOS) standard.

In addition, the user can use sta4R functions to import data from tabular data sources into a STA instance, mirroring the capabilities of importer tools such as the 52 North SOS importer for the SOS.

Key Technologies

Key Use Cases

SensorThings API and R

There are two families of functions that need to be created:

  1. Functions replicating SensorThings API calls. These can be built with:
  2. httr package request framework
  3. solid understanding of the SensorThings Data Model (see description and/or video)
  4. solid understanding of SensorThings API request patterns (see SensorUp API Docs and Tutorials

  5. Functions parsing SensorThings responses into R data objects, including:

  6. data.frame / tibbles
  7. sf objects

Playground

a playground sta to read data from and write data to is at https://sta-demo.internetofwater.dev/api/v1.1 (or 1.1)



internetofwater/sta4R documentation built on Dec. 4, 2020, 3:08 a.m.