mapproxy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: EUPL-1.2 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInclude

func GetInclude(obj *pdoknlv2.WMTS) (string, error)

func GetMapproxyConfigString

func GetMapproxyConfigString(obj *pdoknlv2.WMTS) (string, error)

func GetMapproxyContainer

func GetMapproxyContainer(obj *pdoknlv2.WMTS, images *types.Images) (*corev1.Container, error)

func GetResponse

func GetResponse(_ *pdoknlv2.WMTS) (string, error)

Types

type Cache

type Cache struct {
	Sources        []string      `yaml:"sources"`
	Grids          []string      `yaml:"grids"`
	DisableStorage bool          `yaml:"disable_storage"`
	CacheDetails   *CacheDetails `yaml:"cache,omitempty"`
}

type CacheDetails

type CacheDetails struct {
	Type          string `yaml:"type"`
	Directory     string `yaml:"directory"`
	ContainerName string `yaml:"container_name"`
}

type Globals

type Globals struct {
	Cache GlobalsCache `yaml:"cache"`
	Image GlobalsImage `yaml:"image"`
}

type GlobalsCache

type GlobalsCache struct {
	MetaBuffer  int     `yaml:"meta_buffer"`
	BaseDir     *string `yaml:"base_dir,omitempty"`
	LockDir     *string `yaml:"lock_dir,omitempty"`
	TileLockDir *string `yaml:"tile_lock_dir,omitempty"`
	MetaSize    []int   `yaml:"meta_size"`
}

type GlobalsImage

type GlobalsImage struct {
	ResamplingMethod string              `yaml:"resampling_method"`
	Paletted         bool                `yaml:"paletted"`
	Formats          GlobalsImageFormats `yaml:"formats"`
}

type GlobalsImageFormats

type GlobalsImageFormats struct {
	Png24 Png24 `yaml:"png24"`
}

type Grid

type Grid struct {
	TileSize []float64 `yaml:"tile_size"`
	Origin   string    `yaml:"origin"`
	Srs      string    `yaml:"srs"`
	Bbox     []float64 `yaml:"bbox"`
	BboxSrs  string    `yaml:"bbox_srs"`
	Res      []float64 `yaml:"res"`
}

type Layer

type Layer struct {
	Name        string   `yaml:"name"`
	Title       string   `yaml:"title"`
	TileSources []string `yaml:"tile_sources"`
}

type MapproxyConfig

type MapproxyConfig struct {
	Services Services          `yaml:"services"`
	Layers   []Layer           `yaml:"layers"`
	Caches   map[string]Cache  `yaml:"caches"`
	Sources  map[string]Source `yaml:"sources"`
	Grids    map[string]Grid   `yaml:"grids"`
	Globals  Globals           `yaml:"globals"`
}

func GetMapproxyConfig

func GetMapproxyConfig(obj *pdoknlv2.WMTS) (MapproxyConfig, error)

func (*MapproxyConfig) Equal

func (m *MapproxyConfig) Equal(o *MapproxyConfig) bool

type Png24

type Png24 struct {
	Format      string `yaml:"format"`
	Transparent bool   `yaml:"transparent"`
}

type ServiceWMTS

type ServiceWMTS struct {
	Kvp                bool                    `yaml:"kvp"`
	Restful            bool                    `yaml:"restful"`
	FeatureinfoFormats []WMTSFeatureInfoFormat `yaml:"featureinfo_formats,omitempty"`
}

type Services

type Services struct {
	Wmts ServiceWMTS `yaml:"wmts"`
}

type Source

type Source struct {
	Type         string         `yaml:"type"`
	WMSOpts      SourceWMSOpts  `yaml:"wms_opts"`
	SupportedSrs []string       `yaml:"supported_srs"`
	Coverage     SourceCoverage `yaml:"coverage"`
	MinRes       *float64       `yaml:"min_res,omitempty"`
	MaxRes       *float64       `yaml:"max_res,omitempty"`
	Req          SourceReq      `yaml:"req"`
}

func (*Source) Equal

func (s *Source) Equal(o *Source) bool

type SourceCoverage

type SourceCoverage struct {
	Srs  string    `yaml:"srs"`
	Bbox []float64 `yaml:"bbox"`
}

type SourceReq

type SourceReq struct {
	Layers      string  `yaml:"layers"`
	URL         string  `yaml:"url"`
	Styles      *string `yaml:"styles,omitempty"`
	Transparent bool    `yaml:"transparent"`
}

type SourceWMSOpts

type SourceWMSOpts struct {
	Map         bool   `yaml:"map"`
	Featureinfo bool   `yaml:"featureinfo"`
	Version     string `yaml:"version"`
}

type WMTSFeatureInfoFormat

type WMTSFeatureInfoFormat struct {
	MimeType string `yaml:"mimetype"`
	Suffix   string `yaml:"suffix"`
}

Jump to

Keyboard shortcuts

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