mapfilegenerator

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig[W pdoknlv3.WMSWFS](webservice W, ownerInfo *smoothoperatorv1.OwnerInfo) (config string, err error)

func GetMapfileGeneratorInitContainer

func GetMapfileGeneratorInitContainer[O pdoknlv3.WMSWFS](obj O, images types.Images) (*corev1.Container, error)

func SetDataFields

func SetDataFields[O pdoknlv3.WMSWFS](obj O, wmsLayer *WMSLayer, data pdoknlv3.Data)

func SetDebugLevel

func SetDebugLevel(level int)

Types

type BaseLayer

type BaseLayer struct {
	Name           string   `json:"name"`
	Title          string   `json:"title"`
	Abstract       string   `json:"abstract"`
	Keywords       string   `json:"keywords"`
	Extent         string   `json:"layer_extent"`
	MetadataID     string   `json:"dataset_metadata_id"`
	Columns        []Column `json:"columns,omitempty"`
	GeometryType   *string  `json:"geometry_type,omitempty"`
	GeopackagePath *string  `json:"gpkg_path,omitempty"`
	TableName      *string  `json:"tablename,omitempty"`
	Postgis        *bool    `json:"postgis,omitempty"`
	MinScale       *string  `json:"minscale,omitempty"`
	MaxScale       *string  `json:"maxscale,omitempty"`
	TifPath        *string  `json:"tif_path,omitempty"`
	Resample       *string  `json:"resample,omitempty"`
	LabelNoClip    bool     `json:"label_no_clip,omitempty"`
}

type BaseServiceInput

type BaseServiceInput struct {
	Title             string   `json:"service_title"`
	Abstract          string   `json:"service_abstract"`
	Keywords          string   `json:"service_keywords"`
	Extent            string   `json:"service_extent"`
	NamespacePrefix   string   `json:"service_namespace_prefix"`
	NamespaceURI      string   `json:"service_namespace_uri"`
	OnlineResource    string   `json:"service_onlineresource"`
	Path              string   `json:"service_path"`
	MetadataID        string   `json:"service_metadata_id"`
	DatasetOwner      *string  `json:"dataset_owner,omitempty"`
	AuthorityURL      *string  `json:"authority_url,omitempty"`
	AutomaticCasing   bool     `json:"automatic_casing"`
	DataEPSG          string   `json:"data_epsg"`
	EPSGList          []string `json:"epsg_list"`
	DebugLevel        int      `json:"service_debug_level,omitempty"`
	AccessConstraints string   `json:"service_accessconstraints"`
}

type Column

type Column struct {
	Name  string  `json:"name"`
	Alias *string `json:"alias,omitempty"`
}

type GroupLayer

type GroupLayer struct {
	Name       string `json:"name"`
	Title      string `json:"title"`
	Abstract   string `json:"abstract"`
	StyleName  string `json:"style_name"`
	StyleTitle string `json:"style_title"`
}

type Style

type Style struct {
	Path  string `json:"path"`
	Title string `json:"title,omitempty"`
}

type WFSInput

type WFSInput struct {
	BaseServiceInput
	MaxFeatures string     `json:"service_wfs_maxfeatures"`
	Layers      []WFSLayer `json:"layers"`
}

func MapWFSToMapfileGeneratorInput

func MapWFSToMapfileGeneratorInput(wfs *pdoknlv3.WFS, ownerInfo *smoothoperatorv1.OwnerInfo) (WFSInput, error)

type WFSLayer

type WFSLayer struct {
	BaseLayer
}

type WMSInput

type WMSInput struct {
	BaseServiceInput
	Layers          []WMSLayer   `json:"layers"`
	GroupLayers     []GroupLayer `json:"group_layers"`
	Symbols         []string     `json:"symbols"`
	Fonts           *string      `json:"fonts,omitempty"`
	Templates       string       `json:"templates,omitempty"`
	OutputFormatJpg string       `json:"outputformat_jpg"`
	OutputFormatPng string       `json:"outputformat_png8"`
	MaxSize         string       `json:"maxSize"`
	TopLevelName    string       `json:"top_level_name,omitempty"`
	Resolution      string       `json:"resolution,omitempty"`
	DefResolution   string       `json:"defresolution,omitempty"`
}

func MapWMSToMapfileGeneratorInput

func MapWMSToMapfileGeneratorInput(wms *pdoknlv3.WMS, ownerInfo *smoothoperatorv1.OwnerInfo) (WMSInput, error)

type WMSLayer

type WMSLayer struct {
	BaseLayer
	GroupName                   string  `json:"group_name,omitempty"`
	Styles                      []Style `json:"styles"`
	Offsite                     string  `json:"offsite,omitempty"`
	GetFeatureInfoIncludesClass *bool   `json:"get_feature_info_includes_class,omitempty"`
}

Jump to

Keyboard shortcuts

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