Skip to content

PDOK/featureinfo-generator

Repository files navigation

featureinfo-generator

Build Lint Go Report Card GitHub license Docker Pulls

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:

  1. The available Layers for the WMS-service.
  2. The available Properties for each layer.

Running

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

Test

Tests can be run by:

go test ./... -covermode=atomic

Examples

Below are two examples of generated HTML output for a given scheme.json:

New builds

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published