featureinfo-generator

module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2025 License: MIT

README

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

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL