* Create sensorthings.py * Update plugin.py * Add files via upload * Update sensorthings.py * Add files via upload * Update sensorthings.py * Update sensorthings.py * Update sensorthings.py * Update sensorthings.py * Update sensorthings BRGM Endpoint * Clean Examples * Cleaned sensorthings config * add bbox and datetime query params Added optional intralinking between STA entities * add pytest for sta provider * add sta pytest to workflow * improve versatility of intralink and uri * Update Datastreams geometry provider * Update iow.sta.pygeoapi.config.yml * faster hits using sta $count * fix flake8 * added sta provider for github actions * type in main.yml * Update main.yml * Update main.yml * rename tests/data/datastreams.json * Update main.yml * Update load_sta_data.py * Update load_sta_data.py * Update load_sta_data.py * Update load_sta_data.py * Update load_sta_data.py * Fix sta pytest * fix flake8 * Update docs * Update test_sensorthings__provider.py * Merge various fixes from sta-patch-1 * force sorting * Move STA data to remote host * Clarify use of the intralink field * rename test_sensorthings_provider.py * Add Readme.md and switch to docker-compose * Sensorthings -> SensorThings
1.4 KiB
Pygeoapi with SensorThings (STA)
This folder contains a Docker Compose configuration necessary to setup an example
pygeoapi server using a STA endpoint.
This config is only for local development and testing.
SensorThings Build options
There are three example STA endpoints. To switch between examples, the pygeoapi.config.yml file used in the docker
compose needs to be changed.
-
The first, brgm.sta.pygeoapi.config.yml creates a
pygeoapiserver serving the BRGM water quality endpoint. -
The second, iow.sta.pygeoapi.config.yml creates a
pygeoapiserver hosting example IoW endpoint with URIs. -
The final config, sta.pygeoapi.config.yml creates a
pygeoapiserver inside of a muti-container Docker app, and linked to an empty FROST server. To use this configuration, uncomment Lines 40 - 70 of the docker-compose.yml file in addition to changing the pygeoapi config. The database can be populated following a workflow similar to that of the populator script for build testing,load_sta_data.py.Note: The pygeoapi server will fail to build until the STA server has been populated, thus the addition of always restart
SensorThings Usage
After editing the docker-compose.yml file appropriately:
docker compose up [-d]
Navigate to localhost:5000.