This project creates a HTML document which can be used as a template through Mapserver to create a getFeatureInfo response for the WMS-services. Documentation for the usage of template driven output in Mapserver can be found at https://mapserver.org/output/template_output.html#template-driven-output.
The generated HTML template is configured by a scheme.json
file.
This JSON-file contains the following information:
- The available Layers for the WMS-service.
- The available Properties for each layer.
A docker image can be built by:
docker build -t generate-html
The image can then be used to create a HTML template by running:
docker run --rm generate-html featureinfo-generator -input-path /data/scheme.json -dest-folder /data/html
Tests can be run by:
go test ./... -covermode=atomic
Below are two examples of generated HTML output for a given scheme.json
:
This repository is configured to automatically build and publish a new image for new releases and tags. The images can be found at: https://hub.docker.com/repository/docker/pdok/featureinfo-generator/general