Skip to content

MapServer OGC CITE Tests

Seth G edited this page Dec 7, 2023 · 1 revision

This page contains notes of discussions and tests made during the OSGeo 2023 Community Sprint. There have also been recent discussions on OGC API compliancy on the mailing lists at https://lists.osgeo.org/pipermail/mapserver-dev/2023-October/017011.html

MapServer is currently listed as an "Implementing Product" at https://www.ogc.org/resources/product-details/?pid=1083 This lists the last tested version as MapServer 6.2, and as a official reference implementation for WMS, and the last compliancy testing from 2016. There is also a sample URL - http://ows.eox.at/cite-wcs?service=wcs&version=2.0.1&request=getcapabilities which is no longer valid or responding.

Aims

  • Get WMS 1.3.0 compliancy working locally (as MapServer is a reference implementation I think it would make sense to make this the priority)
  • Create a new Docker image to be able to build MapServer and run the OGC tests against main/branches
  • Create a new test Mapfile with data and add to the Docker image for the testing
  • Add all the above to a new repository
  • Once this is in place it should be possible to have a CI task that could be run from GitHub to automate this. Perhaps not on each check-in, but manually triggering the tests prior to a new MapServer release
  • Gradually add the remaining OGC standards listed at https://www.ogc.org/resources/product-details/?pid=1083 to the automated setup
  • Add CITE testing for the new OGC API protocols

Notes from Codesprint Testing

Docker image for the CITE tests: https://github.com/opengeospatial/teamengine-docker https://github.com/opengeospatial/teamengine-docker#mount-user-data-from-host-system

Docker run:

# network host only works on Linux?
#docker run --rm --network host -v C:\temp:/app/data ogccite/teamengine-production
docker run -p 8081:8080 --rm -v C:\temp:/app/data ogccite/teamengine-production
-v ~/te_base/users:/usr/local/tomcat/te_base/users

Rest API: http://localhost:8081/teamengine/rest/suites

Create new sessions: http://localhost:8081/teamengine/createSession.jsp Need to turn off pop-up blocker.

http://host.docker.internal/mapserver?map=C:/MapServer/apps/mapview-demo/example.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0 http://host.docker.internal/mapserver?map=C:/MapServer/apps/mapview-demo/example.map&SERVICE=WFS&REQUEST=GetCapabilities&VERSION=2.0.0

The Zoo Project has a Dockerfile and automated testing, see:

The CITE tests should fail if various parameters are missing. OWS and WFS modes were added to MapServer in the commit linked to below: https://github.com/MapServer/MapServer/issues/2531

Other Relevant Links

Team Engine:

Slides on WxS and MapServer

Clone this wiki locally