flaviostutz/wfs-eye
Create WFS collections that are based on pre defined WFS queries
142
Create WFS collections that are based on pre defined WFS queries so that you can create "views" over complex WFS collections to easy data access.
[ WFS CLIENT ] --> [ WFS-EYE ] --> [ WFS 3.0 SERVER ]
version: '3.7'
services:
wfs-eye:
image: flaviostutz/wfs-eye
ports:
- 4000:4000
restart: always
environment:
- WFS3_API_URL=http://wfsgis:8080
- MONGO_ADDRESS=mongo
- MONGO_USERNAME=root
- MONGO_PASSWORD=root
- LOG_LEVEL=debug
mongo:
image: mongo:4.1.10
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
ports:
- 27017-27019:27017-27019
wfsgis:
image: flaviostutz/wfsgis
ports:
- 8080:8080
restart: always
environment:
- POSTGRES_HOST=postgis
- POSTGRES_USERNAME=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DBNAME=admin
postgis:
image: mdillon/postgis:11-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=admin
Run "docker-compose up"
Create view with
curl -X POST \
http://localhost:4000/views \
-d '{
"name": "testview1",
"collection": "tests",
"defaultTime": "2019-02-01/",
"maxTimeRange": "2019-01-01/2019-04-30",
"defaultLimit": 200,
"maxLimit": 500,
"defaultBbox": [-45,-15,-44,-14],
"maxBbox": [-50,-20,-40,-10],
}
'
curl -X GET \
http://localhost:8080/collections/testview1/items \
POST /views
PUT /views/[view name]
GET /views
GET /views/[view name]
DELETE /views/[view name]
docker pull flaviostutz/wfs-eye