Skip to content

Commit

Permalink
SensorThings API provider refactor (#1183)
Browse files Browse the repository at this point in the history
* SensorThingsAPI Provider refactor

- Make code more readable
- Prevent empty SensorThings entity from erroring out pygeoapi

* Fix SensorThings Provider

* Only count on hits

* Fix ref

* Fix ref

- Speed up get_fields
- Simplify intralink process

* Cleanup STA examples

* Add docstrings to functions

* Small fixes

- Split out inner functions
- Add default @iot.id
- Add more debug statements

* Refactor STA paging

- Refactor STA paging
- Reorganize _geometry function
- Update logging
  • Loading branch information
webb-ben authored Mar 30, 2023
1 parent d9c377e commit 9debd89
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 643 deletions.
34 changes: 2 additions & 32 deletions docker/examples/sensorthings/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,5 @@ services:
ports:
- "5000:80"
volumes:
- ./brgm.sta.pygeoapi.config.yml:/pygeoapi/local.config.yml

# depends_on:
# - web
# restart: always
# web:
# image: fraunhoferiosb/frost-server:latest
# environment:
# - serviceRootUrl=http://localhost:8080/FROST-Server
# - http_cors_enable=true
# - http_cors_allowed.origins=*
# - persistence_db_driver=org.postgresql.Driver
# - persistence_db_url=jdbc:postgresql://database:5432/sensorthings
# - persistence_db_username=sensorthings
# - persistence_db_password=ChangeMe
# - persistence_autoUpdateDatabase=true
# ports:
# - 8080:8080
# - 1883:1883
# depends_on:
# - database

# database:
# image: postgis/postgis:11-2.5-alpine
# environment:
# - POSTGRES_DB=sensorthings
# - POSTGRES_USER=sensorthings
# - POSTGRES_PASSWORD=ChangeMe
# volumes:
# - postgis_volume:/var/lib/postgresql/data
# volumes:
# postgis_volume:
- ./brgm.config.yml:/pygeoapi/local.config.yml
# - ./usgs.config.yml:/pygeoapi/local.config.yml
211 changes: 0 additions & 211 deletions docker/examples/sensorthings/iow.sta.pygeoapi.config.yml

This file was deleted.

Loading

0 comments on commit 9debd89

Please sign in to comment.