Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 13, 2024
1 parent 7d4dd37 commit de98e1e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ services:
environment:
- PGOPTIONS
- MAPSERVER_CONFIG_FILE=/etc/mapserver/mapserver.conf
- MAPSERVER_BASE_PATH=/mapserv_proxy/mapserver
- MAPSERVER_BASE_PATH=/mapserv_proxy/
- OGCAPI_HTML_TEMPLATE_DIRECTORY=/usr/local/share/mapserver/ogcapi/templates/html-bootstrap4/
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
Expand Down
2 changes: 1 addition & 1 deletion env.default
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ TILECLOUDCHAIN_INTERNAL_URL=http://tilecloudchain:8080
TILECLOUDCHAIN_INTERNAL_HOST=tilecloudchain
TILECLOUDCHAIN_INTERNAL_PORT=8080
# For internal print
MAPSERVER_URL=http://mapserver:8080/
MAPSERVER_URL=http://mapserver:8080/mapserv_proxy
TINYOWS_URL=http://tinyows:8080/
QGISSERVER_URL=http://qgisserver:8080/mapserv_proxy
QGIS_VERSION=3.34-gdal3.8
Expand Down
14 changes: 12 additions & 2 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
("https://front/c2c/health_check", {"max_level": "1"}, 2),
("https://front/c2c/health_check", {"checker": "check_collector"}, 2),
(
"http://mapserver:8080/mapserv_proxy/mapserver/",
"http://mapserver:8080/mapserv_proxy/",
{"SERVICE": "WMS", "REQUEST": "GetCapabilities", "MAP": "MainPNG"},
60,
),
Expand All @@ -25,7 +25,6 @@
{"SERVICE": "WMS", "REQUEST": "GetCapabilities", "MAP": "/etc/qgisserver/project.qgs"},
60,
),
# TODO adapt
(
"https://front/mapserv_proxy",
{"ogcserver": "Main PNG", "SERVICE": "WMS", "REQUEST": "GetCapabilities"},
Expand All @@ -36,6 +35,17 @@
{"ogcserver": "QGIS server", "SERVICE": "WMS", "REQUEST": "GetCapabilities"},
60,
),
# OGC API - Features
(
"https://mapserver:8080/mapserv_proxy/MainPNG/ogcapi/collections/osm_open/items",
{"ogcserver": "Main PNG", "bbox": "6.0,46.0,7.0,47.0", "limit": "100"},
60,
),
(
"https://qgisserver:8080/mapserv_proxy/wfs3/collections/points/items",
{"map": "/etc/qgisserver/project.qgs", "bbox": "6.0,46.0,7.0,47.0", "limit": "100"},
60,
),
],
)
def test_url(url: str, params: dict[str, str], timeout: int) -> None:
Expand Down
6 changes: 3 additions & 3 deletions ui/src/interfaces/ControllerDesktop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ class Controller extends AbstractDesktopController {
// console.log(features);
// });

// MapServer route: /mapserv_proxy/mapserver/<ogc-server>/ogcapi/*
// MapServer route: /mapserv_proxy/<ogc-server>/ogcapi/*
fetch(
'https://localhost:8484/mapserv_proxy/mapserver/<ogc-server>/ogcapi/collections/<layer>/items?bbox=6.0,46.0,7.0,47.0&limit=100&offset=0',
'https://localhost:8484/mapserv_proxy/<ogc-server>/ogcapi/collections/<layer>/items?bbox=6.0,46.0,7.0,47.0&limit=100&offset=0',
);
fetch(
'http://localhost:8090/mapserv_proxy/mapserver/MainPNG/ogcapi/collections/osm_open/items?bbox=6.0,46.0,7.0,47.0&limit=100&offset=0&ogcserver=MainPNG',
'http://localhost:8090/mapserv_proxy/MainPNG/ogcapi/collections/osm_open/items?bbox=6.0,46.0,7.0,47.0&limit=100&offset=0&ogcserver=MainPNG',
);

// QGISServer route: /mapserv_proxy/<ogc-server>/wfs3/*
Expand Down

0 comments on commit de98e1e

Please sign in to comment.