Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

PDOK/gpkg-to-featureinfo-texthtml

Repository files navigation

gpkg-to-featureinfo-texthtml

GitHub license GitHub release Go report

gpkg-to-featureinfo-texthtml logo

Generate HTML feature-info templates for Mapserver from GPKG

Build

To build the application, make sure you have GoLang (v1.11+) installed.
go build

Test

To test the application, make sure you have GoLang (v1.11+) installed.
go test

Usage with sources

You can use either an URL where a Geopackage can be downloaded or use a local Geopackage. The HTML files will be stored in a 'output' folder.

Example with an URL:
go run main.go -gpkg-url https://domain.nl/geopackages/dataset/1/dataset.gpkg

Example with a local file:
go run main.go -gpkg-path /home/user/downloads/afvalwater.gpkg

Usage with binary (Linux)

You can use either an URL where a Geopackage can be downloaded or use a local Geopackage.

Example with an URL:
gpkg-to-featureinfo-texthtml -gpkg-url https://domain.nl/geopackages/dataset/1/dataset.gpkg

Example with a local file:
gpkg-to-featureinfo-texthtml -gpkg-path /home/user/downloads/afvalwater.gpkg

Usage with binary (Windows)

You can use either an URL where a Geopackage can be downloaded or use a local Geopackage.

Example with an URL:
gpkg-to-featureinfo-texthtml.exe -gpkg-url https://domain.nl/geopackages/dataset/1/dataset.gpkg

Example with a local file:
gpkg-to-featureinfo-texthtml.exe -gpkg-path C:\files\afvalwater.gpkg

Usage with docker

First you need to build the Docker image. This can be acchieved by running:
docker build -t pdok/gpkg-to-featureinfo-texthtml:0.1 .

You could use this container by running:
docker run -v /tmp/output:/ouput -t pdok/gpkg-to-featureinfo-texthtml:0.1 gpkg-to-featureinfo-texthtml -gpkg-url https://domain.nl/geopackages/dataset/1/dataset.gpkg