/python_sensorthingsapi_example

Get data from OGC SensorThings API into Python

Primary LanguagePythonMIT LicenseMIT

Python OGC SensorThings API Examples

Some examples of using the HTTP REST API for OGC SensorThings API to query data.

Note that these examples are using the secondary URL for the Arctic Connect SensorThings API Service. A new URL will become the main URL in late 2020.

Disclaimer: I do not know Python; hopefully the REST API usage instructions come through the examples.

Requirements

I tested this with Python 3.6.6 on MacOS 10.13.

ArcticConnect is using FROST Server for serving OGC SensorThings API. The code may work when pointed to another OGC SensorThings API service, with slightly different results.

Examples

For retrieving a list of sensor stations and their locations for mapping, try these:

Sometimes you know when a Datastream of data has already been created in STA, and you need the simplest way to retrieve the observation data.

If you have a geographic region of interest (bounding box or polygon), you can do some filtering based on that.

License

MIT License