Documentation
¶
Index ¶
- Constants
- Variables
- func InfotypeFromMimetype(mime_type string) string
- func MimetypeFromInfotype(info_type string) string
- func SplitMimeType(mime_type string) [3]string
- func SwitchBBoxEpsgAxisOrder(rect vec2d.Rect, srs string) vec2d.Rect
- type ArcGISExportRequestParams
- func (r *ArcGISExportRequestParams) AddLayer(layer string)
- func (r *ArcGISExportRequestParams) AddLayers(layers []string)
- func (r *ArcGISExportRequestParams) GetBBOxSrs() string
- func (r *ArcGISExportRequestParams) GetBBox() vec2d.Rect
- func (r *ArcGISExportRequestParams) GetDpi() int
- func (r *ArcGISExportRequestParams) GetFormat() string
- func (r *ArcGISExportRequestParams) GetImageSrs() string
- func (r *ArcGISExportRequestParams) GetLayers() []string
- func (r *ArcGISExportRequestParams) GetLercVersion() int
- func (r *ArcGISExportRequestParams) GetSize() [2]uint32
- func (r *ArcGISExportRequestParams) GetTransparent() bool
- func (r *ArcGISExportRequestParams) SetBBox(bbox vec2d.Rect)
- func (r *ArcGISExportRequestParams) SetBBoxSrs(srs string)
- func (r *ArcGISExportRequestParams) SetDpi(dpi int)
- func (r *ArcGISExportRequestParams) SetFormat(fmrt tile.TileFormat)
- func (r *ArcGISExportRequestParams) SetImageSrs(srs string)
- func (r *ArcGISExportRequestParams) SetLercVersion(dpi int)
- func (r *ArcGISExportRequestParams) SetSize(si [2]uint32)
- func (r *ArcGISExportRequestParams) SetTransparent(b bool)
- type ArcGISIdentifyRequest
- type ArcGISIdentifyRequestParams
- func (r *ArcGISIdentifyRequestParams) AddLayer(layer string)
- func (r *ArcGISIdentifyRequestParams) AddLayers(layers []string)
- func (r *ArcGISIdentifyRequestParams) GetBBox() vec2d.Rect
- func (r *ArcGISIdentifyRequestParams) GetFormat() tile.TileFormat
- func (r *ArcGISIdentifyRequestParams) GetLayers() []string
- func (r *ArcGISIdentifyRequestParams) GetPos() [2]float64
- func (r *ArcGISIdentifyRequestParams) GetSize() [2]uint32
- func (r *ArcGISIdentifyRequestParams) GetSrs() string
- func (r *ArcGISIdentifyRequestParams) GetTransparent() bool
- func (r *ArcGISIdentifyRequestParams) SetBBox(bbox vec2d.Rect)
- func (r *ArcGISIdentifyRequestParams) SetFormat(fmrt tile.TileFormat)
- func (r *ArcGISIdentifyRequestParams) SetPos(pos [2]float64)
- func (r *ArcGISIdentifyRequestParams) SetSize(si [2]uint32)
- func (r *ArcGISIdentifyRequestParams) SetSrs(srs string)
- func (r *ArcGISIdentifyRequestParams) SetTransparent(b bool)
- type ArcGISRequest
- type BaseRequest
- func (r *BaseRequest) CompleteUrl() string
- func (r *BaseRequest) CopyWithRequestParams(req *BaseRequest) *BaseRequest
- func (r *BaseRequest) GetParams() RequestParams
- func (r *BaseRequest) GetRawParams() map[string][]string
- func (r *BaseRequest) QueryString() string
- func (r *BaseRequest) ToString() string
- type CesiumLayerJSONRequest
- type CesiumRequest
- type CesiumTileRequest
- type MapboxRequest
- type MapboxSourceJSONRequest
- type MapboxTileRequest
- type ParamPair
- type Request
- func MakeCesiumRequest(req *http.Request, validate bool) Request
- func MakeMapboxRequest(req *http.Request, validate bool) Request
- func MakeTileRequest(req *http.Request, validate bool) Request
- func MakeWMSRequest(req *http.Request, validate bool) Request
- func MakeWMTSRequest(req *http.Request, validate bool) Request
- type RequestParams
- func (p RequestParams) Get(key string) (val []string, ok bool)
- func (p RequestParams) GetOne(key string, defaults string) string
- func (p RequestParams) QueryString() string
- func (p RequestParams) Set(key string, val []string)
- func (p RequestParams) Update(params []ParamPair)
- func (p RequestParams) WithDefaults(defaults RequestParams) RequestParams
- type TMSRequest
- type TileRequest
- type TiledRequest
- type URLTemplateConverter
- type Version
- type WMSCapabilitiesRequest
- type WMSCapabilitiesRequestParams
- type WMSFeatureInfoRequest
- type WMSFeatureInfoRequestParams
- type WMSLegendGraphicRequest
- type WMSLegendGraphicRequestParams
- type WMSMapRequest
- func (r *WMSMapRequest) AdaptParamsToVersion()
- func (r *WMSMapRequest) AdaptToWMS111()
- func (r *WMSMapRequest) GetRequestParams() *WMSMapRequestParams
- func (s *WMSMapRequest) Validate() error
- func (s *WMSMapRequest) ValidateBBox() error
- func (s *WMSMapRequest) ValidateFormat(image_formats []string) error
- func (s *WMSMapRequest) ValidateParam() error
- func (s *WMSMapRequest) ValidateSrs(srs []string) error
- func (s *WMSMapRequest) ValidateStyles() error
- type WMSMapRequestParams
- func (r *WMSMapRequestParams) AddLayer(layer string)
- func (r *WMSMapRequestParams) AddLayers(layers []string)
- func (r *WMSMapRequestParams) GetBBox() vec2d.Rect
- func (r *WMSMapRequestParams) GetBGColor() color.Color
- func (r *WMSMapRequestParams) GetCrs() string
- func (r *WMSMapRequestParams) GetFormat() tile.TileFormat
- func (r *WMSMapRequestParams) GetFormatMimeType() string
- func (r *WMSMapRequestParams) GetFormatString() string
- func (r *WMSMapRequestParams) GetLayers() []string
- func (r *WMSMapRequestParams) GetMetaSize() [2]uint32
- func (r *WMSMapRequestParams) GetSize() [2]uint32
- func (r *WMSMapRequestParams) GetSrs() string
- func (r *WMSMapRequestParams) GetTransparent() bool
- func (r *WMSMapRequestParams) SetBBox(bbox vec2d.Rect)
- func (r *WMSMapRequestParams) SetBGColor(c color.Color)
- func (r *WMSMapRequestParams) SetCrs(srs string)
- func (r *WMSMapRequestParams) SetFormat(fmrt tile.TileFormat)
- func (r *WMSMapRequestParams) SetSize(si [2]uint32)
- func (r *WMSMapRequestParams) SetTransparent(transparent bool)
- func (r *WMSMapRequestParams) Update(params map[string]string)
- type WMSRequest
- type WMTS100CapabilitiesRequest
- type WMTS100FeatureInfoRequest
- type WMTS100TileRequest
- func (r *WMTS100TileRequest) GetFormat() *tile.TileFormat
- func (r *WMTS100TileRequest) GetOrigin() geo.OriginType
- func (r *WMTS100TileRequest) GetOriginString() string
- func (r *WMTS100TileRequest) GetTile() [3]int
- func (r *WMTS100TileRequest) MakeRequest() map[string]interface{}
- func (r *WMTS100TileRequest) Validate() error
- type WMTSCapabilitiesRequestParams
- func (r *WMTSCapabilitiesRequestParams) GetFormat() tile.TileFormat
- func (r *WMTSCapabilitiesRequestParams) GetFormatMimeType() string
- func (r *WMTSCapabilitiesRequestParams) GetUpdateSequence() string
- func (r *WMTSCapabilitiesRequestParams) SetFormat(fmrt tile.TileFormat)
- func (r *WMTSCapabilitiesRequestParams) SetUpdateSequence(s string)
- type WMTSFeatureInfoRequestParams
- type WMTSRequest
- type WMTSTileRequestParams
- func (r *WMTSTileRequestParams) GetCoord() [3]int
- func (r *WMTSTileRequestParams) GetDimensions() map[string][]string
- func (r *WMTSTileRequestParams) GetFormat() tile.TileFormat
- func (r *WMTSTileRequestParams) GetFormatMimeType() string
- func (r *WMTSTileRequestParams) GetLayer() string
- func (r *WMTSTileRequestParams) GetTileMatrixSet() string
- func (r *WMTSTileRequestParams) SetCoord(c [3]int)
- func (r *WMTSTileRequestParams) SetFormat(fmrt tile.TileFormat)
- func (r *WMTSTileRequestParams) SetLayer(l string)
- func (r *WMTSTileRequestParams) SetTileMatrixSet(tms string)
- func (r *WMTSTileRequestParams) Update(params map[string]string)
Constants ¶
View Source
const ( CAPABILITIES_MIME_TYPE_XML = "text/xml" CAPABILITIES_MIME_TYPE_OGC = "application/vnd.ogc.wms_xml" CAPABILITIES_MIME_TYPE_TEXT = "text/plain" CAPABILITIES_MIME_TYPE_HTML = "text/html" )
View Source
const ( UpdateSequenceNone = "none" UpdateSequenceAny = "any" UpdateSequenceEqual = "equal" UpdateSequenceLower = "lower" UpdateSequenceHigher = "higher" )
Variables ¶
View Source
var ( ArgGISFormats = []string{ "jpgpng", "png", "png8", "png24", "jpg", "bmp", "gif", "tiff", "png32", "bip", "bsq", "lerc", } ArgGISPixelType = []string{ "C128", "C64", "F32", "F64", "S16", "S32", "S8", "U1", "U16", "U2", "U32", "U4", "U8", "UNKNOWN", } )
View Source
var (
MapbpxFormats = []string{"mvt", "vector.pbf", "grid.json", "png", "png32", "png64", "png128", "png256", "jpg70", "jpg80", "jpg90"}
)
Functions ¶
func InfotypeFromMimetype ¶
func MimetypeFromInfotype ¶
func SplitMimeType ¶
Types ¶
type ArcGISExportRequestParams ¶
type ArcGISExportRequestParams struct {
// contains filtered or unexported fields
}
func NewArcGISExportRequestParams ¶
func NewArcGISExportRequestParams(params RequestParams) ArcGISExportRequestParams
func (*ArcGISExportRequestParams) AddLayer ¶
func (r *ArcGISExportRequestParams) AddLayer(layer string)
func (*ArcGISExportRequestParams) AddLayers ¶
func (r *ArcGISExportRequestParams) AddLayers(layers []string)
func (*ArcGISExportRequestParams) GetBBOxSrs ¶
func (r *ArcGISExportRequestParams) GetBBOxSrs() string
func (*ArcGISExportRequestParams) GetBBox ¶
func (r *ArcGISExportRequestParams) GetBBox() vec2d.Rect
func (*ArcGISExportRequestParams) GetDpi ¶
func (r *ArcGISExportRequestParams) GetDpi() int
func (*ArcGISExportRequestParams) GetFormat ¶
func (r *ArcGISExportRequestParams) GetFormat() string
func (*ArcGISExportRequestParams) GetImageSrs ¶
func (r *ArcGISExportRequestParams) GetImageSrs() string
func (*ArcGISExportRequestParams) GetLayers ¶
func (r *ArcGISExportRequestParams) GetLayers() []string
func (*ArcGISExportRequestParams) GetLercVersion ¶
func (r *ArcGISExportRequestParams) GetLercVersion() int
func (*ArcGISExportRequestParams) GetSize ¶
func (r *ArcGISExportRequestParams) GetSize() [2]uint32
func (*ArcGISExportRequestParams) GetTransparent ¶
func (r *ArcGISExportRequestParams) GetTransparent() bool
func (*ArcGISExportRequestParams) SetBBox ¶
func (r *ArcGISExportRequestParams) SetBBox(bbox vec2d.Rect)
func (*ArcGISExportRequestParams) SetBBoxSrs ¶
func (r *ArcGISExportRequestParams) SetBBoxSrs(srs string)
func (*ArcGISExportRequestParams) SetDpi ¶
func (r *ArcGISExportRequestParams) SetDpi(dpi int)
func (*ArcGISExportRequestParams) SetFormat ¶
func (r *ArcGISExportRequestParams) SetFormat(fmrt tile.TileFormat)
func (*ArcGISExportRequestParams) SetImageSrs ¶
func (r *ArcGISExportRequestParams) SetImageSrs(srs string)
func (*ArcGISExportRequestParams) SetLercVersion ¶
func (r *ArcGISExportRequestParams) SetLercVersion(dpi int)
func (*ArcGISExportRequestParams) SetSize ¶
func (r *ArcGISExportRequestParams) SetSize(si [2]uint32)
func (*ArcGISExportRequestParams) SetTransparent ¶
func (r *ArcGISExportRequestParams) SetTransparent(b bool)
type ArcGISIdentifyRequest ¶
type ArcGISIdentifyRequest struct {
BaseRequest
Uri *url.URL
}
func NewArcGISIdentifyRequest ¶
func NewArcGISIdentifyRequest(param interface{}, url string) *ArcGISIdentifyRequest
func (*ArcGISIdentifyRequest) GetRequestParams ¶
func (r *ArcGISIdentifyRequest) GetRequestParams() *ArcGISIdentifyRequestParams
func (*ArcGISIdentifyRequest) QueryString ¶
func (r *ArcGISIdentifyRequest) QueryString() string
type ArcGISIdentifyRequestParams ¶
type ArcGISIdentifyRequestParams struct {
// contains filtered or unexported fields
}
func NewArcGISIdentifyRequestParams ¶
func NewArcGISIdentifyRequestParams(params RequestParams) ArcGISIdentifyRequestParams
func (*ArcGISIdentifyRequestParams) AddLayer ¶
func (r *ArcGISIdentifyRequestParams) AddLayer(layer string)
func (*ArcGISIdentifyRequestParams) AddLayers ¶
func (r *ArcGISIdentifyRequestParams) AddLayers(layers []string)
func (*ArcGISIdentifyRequestParams) GetBBox ¶
func (r *ArcGISIdentifyRequestParams) GetBBox() vec2d.Rect
func (*ArcGISIdentifyRequestParams) GetFormat ¶
func (r *ArcGISIdentifyRequestParams) GetFormat() tile.TileFormat
func (*ArcGISIdentifyRequestParams) GetLayers ¶
func (r *ArcGISIdentifyRequestParams) GetLayers() []string
func (*ArcGISIdentifyRequestParams) GetPos ¶
func (r *ArcGISIdentifyRequestParams) GetPos() [2]float64
func (*ArcGISIdentifyRequestParams) GetSize ¶
func (r *ArcGISIdentifyRequestParams) GetSize() [2]uint32
func (*ArcGISIdentifyRequestParams) GetSrs ¶
func (r *ArcGISIdentifyRequestParams) GetSrs() string
func (*ArcGISIdentifyRequestParams) GetTransparent ¶
func (r *ArcGISIdentifyRequestParams) GetTransparent() bool
func (*ArcGISIdentifyRequestParams) SetBBox ¶
func (r *ArcGISIdentifyRequestParams) SetBBox(bbox vec2d.Rect)
func (*ArcGISIdentifyRequestParams) SetFormat ¶
func (r *ArcGISIdentifyRequestParams) SetFormat(fmrt tile.TileFormat)
func (*ArcGISIdentifyRequestParams) SetPos ¶
func (r *ArcGISIdentifyRequestParams) SetPos(pos [2]float64)
func (*ArcGISIdentifyRequestParams) SetSize ¶
func (r *ArcGISIdentifyRequestParams) SetSize(si [2]uint32)
func (*ArcGISIdentifyRequestParams) SetSrs ¶
func (r *ArcGISIdentifyRequestParams) SetSrs(srs string)
func (*ArcGISIdentifyRequestParams) SetTransparent ¶
func (r *ArcGISIdentifyRequestParams) SetTransparent(b bool)
type ArcGISRequest ¶
type ArcGISRequest struct {
BaseRequest
Uri *url.URL
}
func NewArcGISRequest ¶
func NewArcGISRequest(param interface{}, url string) *ArcGISRequest
func (*ArcGISRequest) GetRequestParams ¶
func (r *ArcGISRequest) GetRequestParams() *ArcGISExportRequestParams
func (*ArcGISRequest) QueryString ¶
func (r *ArcGISRequest) QueryString() string
type BaseRequest ¶
type BaseRequest struct {
Request
Params RequestParams
Delimiter string
Url string
Http *http.Request
FixedParams map[string]string
// contains filtered or unexported fields
}
func (*BaseRequest) CompleteUrl ¶
func (r *BaseRequest) CompleteUrl() string
func (*BaseRequest) CopyWithRequestParams ¶
func (r *BaseRequest) CopyWithRequestParams(req *BaseRequest) *BaseRequest
func (*BaseRequest) GetParams ¶
func (r *BaseRequest) GetParams() RequestParams
func (*BaseRequest) GetRawParams ¶
func (r *BaseRequest) GetRawParams() map[string][]string
func (*BaseRequest) QueryString ¶
func (r *BaseRequest) QueryString() string
func (*BaseRequest) ToString ¶
func (r *BaseRequest) ToString() string
type CesiumLayerJSONRequest ¶
type CesiumLayerJSONRequest struct {
CesiumRequest
LayerName string
}
func NewCesiumLayerJSONRequest ¶
func NewCesiumLayerJSONRequest(hreq *http.Request, validate bool) *CesiumLayerJSONRequest
type CesiumRequest ¶
type CesiumRequest struct {
BaseRequest
RequestHandlerName string
ReqRegex *regexp.Regexp
Version string
}
func (*CesiumRequest) GetRequestHandler ¶
func (r *CesiumRequest) GetRequestHandler() string
type CesiumTileRequest ¶
type CesiumTileRequest struct {
CesiumRequest
LayerName string
Tile []int
Extensions []string
Format *tile.TileFormat
}
func NewCesiumTileRequest ¶
func NewCesiumTileRequest(hreq *http.Request, validate bool) *CesiumTileRequest
func (*CesiumTileRequest) GetExtensions ¶
func (r *CesiumTileRequest) GetExtensions() []string
func (*CesiumTileRequest) GetFormat ¶
func (r *CesiumTileRequest) GetFormat() *tile.TileFormat
func (*CesiumTileRequest) GetOrigin ¶
func (r *CesiumTileRequest) GetOrigin() geo.OriginType
func (*CesiumTileRequest) GetOriginString ¶
func (r *CesiumTileRequest) GetOriginString() string
func (*CesiumTileRequest) GetTile ¶
func (r *CesiumTileRequest) GetTile() [3]int
type MapboxRequest ¶
type MapboxRequest struct {
BaseRequest
RequestHandlerName string
AccessToken string
ReqRegex *regexp.Regexp
}
func (*MapboxRequest) GetRequestHandler ¶
func (r *MapboxRequest) GetRequestHandler() string
type MapboxSourceJSONRequest ¶
type MapboxSourceJSONRequest struct {
MapboxRequest
LayerName string
FileName string
Secure bool
}
func NewMapboxSourceJSONRequest ¶
func NewMapboxSourceJSONRequest(hreq *http.Request, validate bool) *MapboxSourceJSONRequest
type MapboxTileRequest ¶
type MapboxTileRequest struct {
MapboxRequest
LayerName string
Tile []int
Format *tile.TileFormat
Retina *int
Origin string
}
func NewMapboxTileRequest ¶
func NewMapboxTileRequest(hreq *http.Request, validate bool) *MapboxTileRequest
func (*MapboxTileRequest) GetFormat ¶
func (r *MapboxTileRequest) GetFormat() *tile.TileFormat
func (*MapboxTileRequest) GetOrigin ¶
func (r *MapboxTileRequest) GetOrigin() geo.OriginType
func (*MapboxTileRequest) GetOriginString ¶
func (r *MapboxTileRequest) GetOriginString() string
func (*MapboxTileRequest) GetTile ¶
func (r *MapboxTileRequest) GetTile() [3]int
type Request ¶
type RequestParams ¶
func NewRequestParams ¶
func NewRequestParams(dict map[string][]string) RequestParams
func (RequestParams) QueryString ¶
func (p RequestParams) QueryString() string
func (RequestParams) Set ¶
func (p RequestParams) Set(key string, val []string)
func (RequestParams) Update ¶
func (p RequestParams) Update(params []ParamPair)
func (RequestParams) WithDefaults ¶
func (p RequestParams) WithDefaults(defaults RequestParams) RequestParams
type TMSRequest ¶
type TMSRequest struct {
TileRequest
CapabilitiesRegex *regexp.Regexp
RootRequestRegex *regexp.Regexp
}
func NewTMSRequest ¶
func NewTMSRequest(req *http.Request) *TMSRequest
type TileRequest ¶
type TileRequest struct {
TiledRequest
TileReqRegex *regexp.Regexp
RequestHandlerName string
UseProfiles bool
RequestPrefix string
Origin string
Dimensions map[string][]string
Tile []int
Layer string
Format *tile.TileFormat
Http *http.Request
}
func NewTileRequest ¶
func NewTileRequest(req *http.Request) *TileRequest
func (*TileRequest) GetFormat ¶
func (r *TileRequest) GetFormat() *tile.TileFormat
func (*TileRequest) GetOrigin ¶
func (r *TileRequest) GetOrigin() geo.OriginType
func (*TileRequest) GetOriginString ¶
func (r *TileRequest) GetOriginString() string
func (*TileRequest) GetRequestHandler ¶
func (r *TileRequest) GetRequestHandler() string
func (*TileRequest) GetTile ¶
func (r *TileRequest) GetTile() [3]int
type TiledRequest ¶
type TiledRequest interface {
Request
GetFormat() *tile.TileFormat
GetTile() [3]int
GetOriginString() string
GetOrigin() geo.OriginType
}
type URLTemplateConverter ¶
type URLTemplateConverter struct {
Template string
// contains filtered or unexported fields
}
func NewFeatureInfoURLTemplateConverter ¶
func NewFeatureInfoURLTemplateConverter(template string) *URLTemplateConverter
func NewURLTemplateConverter ¶
func NewURLTemplateConverter(template string) *URLTemplateConverter
func (*URLTemplateConverter) GetDimensions ¶
func (t *URLTemplateConverter) GetDimensions() []string
type WMSCapabilitiesRequest ¶
type WMSCapabilitiesRequest struct {
WMSRequest
MimeType string
}
func NewWMSCapabilitiesRequest ¶
func NewWMSCapabilitiesRequest(param interface{}, url string, validate bool, ht *http.Request) *WMSCapabilitiesRequest
func (*WMSCapabilitiesRequest) GetRequestParams ¶
func (r *WMSCapabilitiesRequest) GetRequestParams() *WMSCapabilitiesRequestParams
type WMSCapabilitiesRequestParams ¶
type WMSCapabilitiesRequestParams struct {
// contains filtered or unexported fields
}
func NewWMSCapabilitiesRequestParams ¶
func NewWMSCapabilitiesRequestParams(params RequestParams) WMSCapabilitiesRequestParams
func (*WMSCapabilitiesRequestParams) GetFormat ¶
func (r *WMSCapabilitiesRequestParams) GetFormat() tile.TileFormat
func (*WMSCapabilitiesRequestParams) GetFormatMimeType ¶
func (r *WMSCapabilitiesRequestParams) GetFormatMimeType() string
func (*WMSCapabilitiesRequestParams) GetFormatString ¶
func (r *WMSCapabilitiesRequestParams) GetFormatString() string
func (*WMSCapabilitiesRequestParams) SetFormat ¶
func (r *WMSCapabilitiesRequestParams) SetFormat(fmrt tile.TileFormat)
type WMSFeatureInfoRequest ¶
type WMSFeatureInfoRequest struct {
WMSMapRequest
}
func (*WMSFeatureInfoRequest) AdaptParamsToVersion ¶
func (r *WMSFeatureInfoRequest) AdaptParamsToVersion()
func (*WMSFeatureInfoRequest) AdaptToWMS111 ¶
func (r *WMSFeatureInfoRequest) AdaptToWMS111()
func (*WMSFeatureInfoRequest) GetRequestParams ¶
func (r *WMSFeatureInfoRequest) GetRequestParams() *WMSFeatureInfoRequestParams
func (*WMSFeatureInfoRequest) ValidateFormat ¶
func (s *WMSFeatureInfoRequest) ValidateFormat(image_formats []string) bool
type WMSFeatureInfoRequestParams ¶
type WMSFeatureInfoRequestParams struct {
WMSMapRequestParams
}
func NewWMSFeatureInfoRequestParams ¶
func NewWMSFeatureInfoRequestParams(params RequestParams) WMSFeatureInfoRequestParams
func (*WMSFeatureInfoRequestParams) GetPos ¶
func (r *WMSFeatureInfoRequestParams) GetPos() [2]float64
func (*WMSFeatureInfoRequestParams) GetPosCoords ¶
func (r *WMSFeatureInfoRequestParams) GetPosCoords() []float64
func (*WMSFeatureInfoRequestParams) SetPos ¶
func (r *WMSFeatureInfoRequestParams) SetPos(pos [2]float64)
type WMSLegendGraphicRequest ¶
type WMSLegendGraphicRequest struct {
WMSRequest
}
func (*WMSLegendGraphicRequest) GetRequestParams ¶
func (r *WMSLegendGraphicRequest) GetRequestParams() *WMSLegendGraphicRequestParams
type WMSLegendGraphicRequestParams ¶
type WMSLegendGraphicRequestParams struct {
WMSMapRequestParams
}
func NewWMSLegendGraphicRequestParams ¶
func NewWMSLegendGraphicRequestParams(params RequestParams) WMSLegendGraphicRequestParams
func (*WMSLegendGraphicRequestParams) GetLayer ¶
func (r *WMSLegendGraphicRequestParams) GetLayer() string
func (*WMSLegendGraphicRequestParams) GetScale ¶
func (r *WMSLegendGraphicRequestParams) GetScale() int
func (*WMSLegendGraphicRequestParams) SetLayer ¶
func (r *WMSLegendGraphicRequestParams) SetLayer(l string)
func (*WMSLegendGraphicRequestParams) SetScale ¶
func (r *WMSLegendGraphicRequestParams) SetScale(l int)
type WMSMapRequest ¶
type WMSMapRequest struct {
WMSRequest
}
func NewWMSMapRequest ¶
func (*WMSMapRequest) AdaptParamsToVersion ¶
func (r *WMSMapRequest) AdaptParamsToVersion()
func (*WMSMapRequest) AdaptToWMS111 ¶
func (r *WMSMapRequest) AdaptToWMS111()
func (*WMSMapRequest) GetRequestParams ¶
func (r *WMSMapRequest) GetRequestParams() *WMSMapRequestParams
func (*WMSMapRequest) Validate ¶
func (s *WMSMapRequest) Validate() error
func (*WMSMapRequest) ValidateBBox ¶
func (s *WMSMapRequest) ValidateBBox() error
func (*WMSMapRequest) ValidateFormat ¶
func (s *WMSMapRequest) ValidateFormat(image_formats []string) error
func (*WMSMapRequest) ValidateParam ¶
func (s *WMSMapRequest) ValidateParam() error
func (*WMSMapRequest) ValidateSrs ¶
func (s *WMSMapRequest) ValidateSrs(srs []string) error
func (*WMSMapRequest) ValidateStyles ¶
func (s *WMSMapRequest) ValidateStyles() error
type WMSMapRequestParams ¶
type WMSMapRequestParams struct {
// contains filtered or unexported fields
}
func NewWMSMapRequestParams ¶
func NewWMSMapRequestParams(params RequestParams) WMSMapRequestParams
func (*WMSMapRequestParams) AddLayer ¶
func (r *WMSMapRequestParams) AddLayer(layer string)
func (*WMSMapRequestParams) AddLayers ¶
func (r *WMSMapRequestParams) AddLayers(layers []string)
func (*WMSMapRequestParams) GetBBox ¶
func (r *WMSMapRequestParams) GetBBox() vec2d.Rect
func (*WMSMapRequestParams) GetBGColor ¶
func (r *WMSMapRequestParams) GetBGColor() color.Color
func (*WMSMapRequestParams) GetCrs ¶
func (r *WMSMapRequestParams) GetCrs() string
func (*WMSMapRequestParams) GetFormat ¶
func (r *WMSMapRequestParams) GetFormat() tile.TileFormat
func (*WMSMapRequestParams) GetFormatMimeType ¶
func (r *WMSMapRequestParams) GetFormatMimeType() string
func (*WMSMapRequestParams) GetFormatString ¶
func (r *WMSMapRequestParams) GetFormatString() string
func (*WMSMapRequestParams) GetLayers ¶
func (r *WMSMapRequestParams) GetLayers() []string
func (*WMSMapRequestParams) GetMetaSize ¶
func (r *WMSMapRequestParams) GetMetaSize() [2]uint32
func (*WMSMapRequestParams) GetSize ¶
func (r *WMSMapRequestParams) GetSize() [2]uint32
func (*WMSMapRequestParams) GetSrs ¶
func (r *WMSMapRequestParams) GetSrs() string
func (*WMSMapRequestParams) GetTransparent ¶
func (r *WMSMapRequestParams) GetTransparent() bool
func (*WMSMapRequestParams) SetBBox ¶
func (r *WMSMapRequestParams) SetBBox(bbox vec2d.Rect)
func (*WMSMapRequestParams) SetBGColor ¶
func (r *WMSMapRequestParams) SetBGColor(c color.Color)
func (*WMSMapRequestParams) SetCrs ¶
func (r *WMSMapRequestParams) SetCrs(srs string)
func (*WMSMapRequestParams) SetFormat ¶
func (r *WMSMapRequestParams) SetFormat(fmrt tile.TileFormat)
func (*WMSMapRequestParams) SetSize ¶
func (r *WMSMapRequestParams) SetSize(si [2]uint32)
func (*WMSMapRequestParams) SetTransparent ¶
func (r *WMSMapRequestParams) SetTransparent(transparent bool)
func (*WMSMapRequestParams) Update ¶
func (r *WMSMapRequestParams) Update(params map[string]string)
type WMSRequest ¶
type WMSRequest struct {
BaseRequest
RequestHandlerName string
ExpectedParam []string
NonStrict bool
NonStrictParams mapset.Set
// contains filtered or unexported fields
}
func (*WMSRequest) GetRequestHandler ¶
func (r *WMSRequest) GetRequestHandler() string
type WMTS100CapabilitiesRequest ¶
type WMTS100CapabilitiesRequest struct {
WMTSRequest
CapabilitiesTemplate string
MimeType string
}
func NewWMTS100CapabilitiesRequest ¶
func NewWMTS100CapabilitiesRequest(param interface{}, url string, validate bool, ht *http.Request) *WMTS100CapabilitiesRequest
func (*WMTS100CapabilitiesRequest) GetRequestParams ¶
func (r *WMTS100CapabilitiesRequest) GetRequestParams() WMTSCapabilitiesRequestParams
type WMTS100FeatureInfoRequest ¶
type WMTS100FeatureInfoRequest struct {
WMTS100TileRequest
}
func NewWMTS100FeatureInfoRequest ¶
func NewWMTS100FeatureInfoRequest(param interface{}, url string, validate bool, ht *http.Request) *WMTS100FeatureInfoRequest
func (*WMTS100FeatureInfoRequest) GetRequestParams ¶
func (r *WMTS100FeatureInfoRequest) GetRequestParams() WMTSFeatureInfoRequestParams
func (*WMTS100FeatureInfoRequest) MakeRequest ¶
func (r *WMTS100FeatureInfoRequest) MakeRequest() map[string]interface{}
type WMTS100TileRequest ¶
type WMTS100TileRequest struct {
WMTSRequest
}
func NewWMTS100TileRequest ¶
func NewWMTS100TileRequest(param interface{}, url string, validate bool, ht *http.Request) *WMTS100TileRequest
func (*WMTS100TileRequest) GetFormat ¶
func (r *WMTS100TileRequest) GetFormat() *tile.TileFormat
func (*WMTS100TileRequest) GetOrigin ¶
func (r *WMTS100TileRequest) GetOrigin() geo.OriginType
func (*WMTS100TileRequest) GetOriginString ¶
func (r *WMTS100TileRequest) GetOriginString() string
func (*WMTS100TileRequest) GetTile ¶
func (r *WMTS100TileRequest) GetTile() [3]int
func (*WMTS100TileRequest) MakeRequest ¶
func (r *WMTS100TileRequest) MakeRequest() map[string]interface{}
func (*WMTS100TileRequest) Validate ¶
func (r *WMTS100TileRequest) Validate() error
type WMTSCapabilitiesRequestParams ¶
type WMTSCapabilitiesRequestParams struct {
// contains filtered or unexported fields
}
func NewWMTSCapabilitiesRequestParams ¶
func NewWMTSCapabilitiesRequestParams(params RequestParams) WMTSCapabilitiesRequestParams
func (*WMTSCapabilitiesRequestParams) GetFormat ¶
func (r *WMTSCapabilitiesRequestParams) GetFormat() tile.TileFormat
func (*WMTSCapabilitiesRequestParams) GetFormatMimeType ¶
func (r *WMTSCapabilitiesRequestParams) GetFormatMimeType() string
func (*WMTSCapabilitiesRequestParams) GetUpdateSequence ¶
func (r *WMTSCapabilitiesRequestParams) GetUpdateSequence() string
func (*WMTSCapabilitiesRequestParams) SetFormat ¶
func (r *WMTSCapabilitiesRequestParams) SetFormat(fmrt tile.TileFormat)
func (*WMTSCapabilitiesRequestParams) SetUpdateSequence ¶
func (r *WMTSCapabilitiesRequestParams) SetUpdateSequence(s string)
type WMTSFeatureInfoRequestParams ¶
type WMTSFeatureInfoRequestParams struct {
WMTSTileRequestParams
}
func NewWMTSFeatureInfoRequestParams ¶
func NewWMTSFeatureInfoRequestParams(params RequestParams) WMTSFeatureInfoRequestParams
func (*WMTSFeatureInfoRequestParams) GetInfoformat ¶
func (r *WMTSFeatureInfoRequestParams) GetInfoformat() string
func (*WMTSFeatureInfoRequestParams) GetPos ¶
func (r *WMTSFeatureInfoRequestParams) GetPos() [2]float64
func (*WMTSFeatureInfoRequestParams) SetInfoformat ¶
func (r *WMTSFeatureInfoRequestParams) SetInfoformat(info string)
func (*WMTSFeatureInfoRequestParams) SetPos ¶
func (r *WMTSFeatureInfoRequestParams) SetPos(pos [2]float64)
type WMTSRequest ¶
type WMTSRequest struct {
BaseRequest
RequestHandlerName string
ExpectedParam []string
NonStrict bool
NonStrictParams mapset.Set
UseProfiles bool
}
func (*WMTSRequest) GetRequestHandler ¶
func (r *WMTSRequest) GetRequestHandler() string
func (*WMTSRequest) GetRequestParams ¶
func (r *WMTSRequest) GetRequestParams() WMTSTileRequestParams
type WMTSTileRequestParams ¶
type WMTSTileRequestParams struct {
// contains filtered or unexported fields
}
func NewWMTSTileRequestParams ¶
func NewWMTSTileRequestParams(params RequestParams) WMTSTileRequestParams
func (*WMTSTileRequestParams) GetCoord ¶
func (r *WMTSTileRequestParams) GetCoord() [3]int
func (*WMTSTileRequestParams) GetDimensions ¶
func (r *WMTSTileRequestParams) GetDimensions() map[string][]string
func (*WMTSTileRequestParams) GetFormat ¶
func (r *WMTSTileRequestParams) GetFormat() tile.TileFormat
func (*WMTSTileRequestParams) GetFormatMimeType ¶
func (r *WMTSTileRequestParams) GetFormatMimeType() string
func (*WMTSTileRequestParams) GetLayer ¶
func (r *WMTSTileRequestParams) GetLayer() string
func (*WMTSTileRequestParams) GetTileMatrixSet ¶
func (r *WMTSTileRequestParams) GetTileMatrixSet() string
func (*WMTSTileRequestParams) SetCoord ¶
func (r *WMTSTileRequestParams) SetCoord(c [3]int)
func (*WMTSTileRequestParams) SetFormat ¶
func (r *WMTSTileRequestParams) SetFormat(fmrt tile.TileFormat)
func (*WMTSTileRequestParams) SetLayer ¶
func (r *WMTSTileRequestParams) SetLayer(l string)
func (*WMTSTileRequestParams) SetTileMatrixSet ¶
func (r *WMTSTileRequestParams) SetTileMatrixSet(tms string)
func (*WMTSTileRequestParams) Update ¶
func (r *WMTSTileRequestParams) Update(params map[string]string)
Click to show internal directories.
Click to hide internal directories.