sources

package
v0.0.0-...-7109a22 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArcGISInfoSource

type ArcGISInfoSource struct {
	Client *client.ArcGISInfoClient
}

func NewArcGISInfoSource

func NewArcGISInfoSource(c *client.ArcGISInfoClient) *ArcGISInfoSource

func (*ArcGISInfoSource) GetClient

func (s *ArcGISInfoSource) GetClient() *client.ArcGISInfoClient

func (*ArcGISInfoSource) GetInfo

type ArcGISSource

type ArcGISSource struct {
	WMSSource
}

func NewArcGISSource

func NewArcGISSource(
	client *client.ArcGISClient,
	image_opts *imagery.ImageOptions,
	coverage geo.Coverage,
	res_range *geo.ResolutionRange,
	supported_srs *geo.SupportedSRS,
	supported_formats []string) *ArcGISSource

type CesiumTileSource

type CesiumTileSource struct {
	layer.MapLayer
	Grid          *geo.TileGrid
	Client        *client.CesiumTileClient
	SourceCreater tile.SourceCreater
	Cache         *resource.LayerJSONCache
}

func (*CesiumTileSource) GetLayerJSON

func (s *CesiumTileSource) GetLayerJSON(id string) *resource.LayerJson

func (*CesiumTileSource) GetMap

func (s *CesiumTileSource) GetMap(query *layer.MapQuery) (tile.Source, error)

type DebugSource

type DebugSource struct {
	SupportMetaTiles bool
	ResRange         *geo.ResolutionRange
	Coverage         geo.Coverage
	Extent           *geo.MapExtent
}

func NewDebugSource

func NewDebugSource() *DebugSource

func (*DebugSource) GetCoverage

func (s *DebugSource) GetCoverage() geo.Coverage

func (*DebugSource) GetMap

func (s *DebugSource) GetMap(query *layer.MapQuery) tile.Source

type DummySource

type DummySource struct {
	SupportMetaTiles bool
	ResRange         *geo.ResolutionRange
	Coverage         geo.Coverage
	Extent           *geo.MapExtent
}

func NewDummySource

func NewDummySource(cov geo.Coverage) *DummySource

func (*DummySource) GetCoverage

func (s *DummySource) GetCoverage() geo.Coverage

func (*DummySource) GetMap

func (s *DummySource) GetMap(query *layer.MapQuery) tile.Source

type HTTPSourceErrorHandler

type HTTPSourceErrorHandler struct {
	ResponseErrorCodes map[string]errorInfo
}

func (*HTTPSourceErrorHandler) AddHandler

func (h *HTTPSourceErrorHandler) AddHandler(http_code string, color color.Color, cacheable *tile.CacheInfo)

func (*HTTPSourceErrorHandler) Handle

func (h *HTTPSourceErrorHandler) Handle(status_code string, query *layer.MapQuery) tile.Source

type MapboxTileSource

type MapboxTileSource struct {
	layer.MapLayer
	Grid           *geo.TileGrid
	Client         *client.MapboxTileClient
	SourceCreater  tile.SourceCreater
	TileJSONCache  *resource.TileJSONCache
	TileStatsCache *resource.TileStatsCache
}

func NewMapboxTileSource

func NewMapboxTileSource(grid *geo.TileGrid, coverage geo.Coverage, c *client.MapboxTileClient, opts tile.TileOptions, creater tile.SourceCreater,
	tileJSONCache *resource.TileJSONCache, tileStatsCache *resource.TileStatsCache) *MapboxTileSource

func (*MapboxTileSource) GetMap

func (s *MapboxTileSource) GetMap(query *layer.MapQuery) (tile.Source, error)

func (*MapboxTileSource) GetTileJSON

func (s *MapboxTileSource) GetTileJSON(id string) *resource.TileJSON

func (*MapboxTileSource) GetTileStats

func (s *MapboxTileSource) GetTileStats(id string) *resource.TileStats

type TileSource

type TileSource struct {
	layer.MapLayer
	Grid          *geo.TileGrid
	Client        *client.TileClient
	SourceCreater tile.SourceCreater
}

func NewTileSource

func NewTileSource(grid *geo.TileGrid, c *client.TileClient, coverage geo.Coverage, opts tile.TileOptions, res_range *geo.ResolutionRange, creater tile.SourceCreater) *TileSource

func (*TileSource) GetMap

func (s *TileSource) GetMap(query *layer.MapQuery) (tile.Source, error)

type WMSInfoSource

type WMSInfoSource struct {
	Client      *client.WMSInfoClient
	Coverage    geo.Coverage
	Transformer *resource.XSLTransformer
}

func NewWMSInfoSource

func NewWMSInfoSource(clients *client.WMSInfoClient, coverage geo.Coverage, transformer *resource.XSLTransformer) *WMSInfoSource

func (*WMSInfoSource) GetClient

func (s *WMSInfoSource) GetClient() *client.WMSInfoClient

func (*WMSInfoSource) GetInfo

type WMSLegendSource

type WMSLegendSource struct {
	Clients    []*client.WMSLegendClient
	Cache      *resource.LegendCache
	Identifier string
	Size       []uint32
	Static     bool
}

func NewWMSLegendSource

func NewWMSLegendSource(identifier string, clients []*client.WMSLegendClient, cache *resource.LegendCache) *WMSLegendSource

func (*WMSLegendSource) GetLegend

func (s *WMSLegendSource) GetLegend(query *layer.LegendQuery) tile.Source

func (*WMSLegendSource) GetSize

func (s *WMSLegendSource) GetSize() []uint32

type WMSSource

type WMSSource struct {
	layer.MapLayer
	Client                    client.MapClient
	SupportedSRS              *geo.SupportedSRS
	SupportedFormats          []string
	ExtReqParams              map[string]string
	TransparentColor          color.Color
	TransparentColorTolerance *float64
	Opacity                   *float64
}

func NewWMSSource

func NewWMSSource(client client.MapClient, image_opts *imagery.ImageOptions, coverage geo.Coverage, res_range *geo.ResolutionRange,
	transparent_color color.Color, transparent_color_tolerance *float64,
	supported_srs *geo.SupportedSRS, supported_formats []string, fwd_req_params map[string]string) *WMSSource

func (*WMSSource) CombinedLayer

func (s *WMSSource) CombinedLayer(other layer.Layer, query *layer.MapQuery) layer.Layer

func (*WMSSource) GetClient

func (s *WMSSource) GetClient() client.MapClient

func (*WMSSource) GetMap

func (s *WMSSource) GetMap(query *layer.MapQuery) (tile.Source, error)

func (*WMSSource) IsOpaque

func (s *WMSSource) IsOpaque(query *layer.MapQuery) bool

Jump to

Keyboard shortcuts

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