func init() {
	log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds | log.Lshortfile)
}
/*
init initializes this program
package main
import (
	"context"
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"net/http/httptest"
	"net/http/httputil"
	"os"
	"os/signal"
	"strconv"
	"syscall"
	"time"
	pip "github.com/JamesMilnerUK/pip-go"
	"github.com/julienschmidt/httprouter"
	"github.com/printmaps/printmaps/pd"
	"github.com/rs/cors"
	yaml "gopkg.in/yaml.v2"
)
type Config struct {
	Logfile         string
	Workdir         string
	Addr            string
	Capafile        string
	Polyfile        string
	Maintenancefile string
	Maintenancemode bool
}
var config Config
var (
	progName    = os.Args[0]
	progVersion = "v0.8.0"
	progDate    = "2021/06/12"
	progPurpose = "Printmaps Webservice"
	progInfo    = "Webservice to build large printable maps based on OSM data."
)
var (
	pPolygon            pip.Polygon
	pPolygonBoundingBox pip.BoundingBox
)
type ConfigMapformat struct {
	Type           string
	MinPrintWidth  float64
	MaxPrintWidth  float64
	MinPrintHeigth float64
	MaxPrintHeigth float64
}
type ConfigMapscale struct {
	MinScale int
	MaxScale int
}
type ConfigMapdata struct {
	Description  string
	MinLatitude  float64
	MaxLatitude  float64
	MinLongitude float64
	MaxLongitude float64
}
type ConfigStyle struct {
	Name             string
	ShortDescription string
	LongDescription  string
	Release          string
	Date             string
	Link             string
	Copyright        string
	Layers           string
}
type PrintmapsFeature struct {
	ConfigMapdata    ConfigMapdata
	ConfigMapformats []ConfigMapformat
	ConfigMapscale   ConfigMapscale
	ConfigStyles     []ConfigStyle
}
var (
	pmFeature PrintmapsFeature  
)