Documentation ¶
Index ¶
- Constants
- Variables
- func BBox2Geot(width, height int, bbox []float64) []float64
- func CheckBandExpressionsComplexity(bandExpr *BandExpressions, criteria *BandExpressionComplexityCriteria) error
- func CheckDisableServices(layer *Layer, service string) bool
- func CheckEmptyTile(rs []Raster) (bool, error)
- func CheckIndexFile(staticRoot string, path string, verbose bool) string
- func CheckWCSVersion(version string) bool
- func CheckWMSVersion(version string) bool
- func CompileWCSRegexMap() map[string]*regexp.Regexp
- func CompileWMSRegexMap() map[string]*regexp.Regexp
- func CompileWPSRegexMap() map[string]*regexp.Regexp
- func DumpConfig(configs map[string]*Config) (string, error)
- func DumpDap4CE(ce *DapConstraints)
- func EncodeDap4(w http.ResponseWriter, dataFile string, bandNames []string, verbose bool) error
- func EncodeGdal(hDstDS C.GDALDatasetH, rs []Raster, xOff int, yOff int) ([]string, error)
- func EncodeGdalClose(hDstDS *C.GDALDatasetH)
- func EncodeGdalFlush(hDstDS C.GDALDatasetH)
- func EncodeGdalMerge(ctx context.Context, hDstDS C.GDALDatasetH, format string, ...) error
- func EncodeGdalOpen(tempDir string, blockXSize int, blockYSize int, format string, geot []float64, ...) (C.GDALDatasetH, string, error)
- func EncodePNG(br []*ByteRaster, palette *Palette) ([]byte, error)
- func ExecuteWriteTemplateFile(w io.Writer, data interface{}, filePath string) error
- func ExtractEPSGCode(srs string) (int, error)
- func FindConfigGPath(config *Config) string
- func FindLayerBestOverview(layer *Layer, reqRes float64, allowExtrapolation bool) int
- func GenerateDates(name string, start, end time.Time, stepMins time.Duration) []string
- func GenerateDatesAux(start, end time.Time, stepMins time.Duration) []string
- func GenerateDatesChirps20(start, end time.Time, stepMins time.Duration) []string
- func GenerateDatesGeoglam(start, end time.Time, stepMins time.Duration) []string
- func GenerateDatesMCD43A4(start, end time.Time, stepMins time.Duration) []string
- func GenerateDatesMas(start, end string, masAddress string, collection string, namespaces []string, ...) ([]string, string)
- func GenerateDatesRegular(start, end time.Time, stepMins time.Duration) []string
- func GenerateMonthlyDates(start, end time.Time, stepMins time.Duration) []string
- func GenerateYearlyDates(start, end time.Time, stepMins time.Duration) []string
- func GetArea(wgs84Poly geo.Geometry) float64
- func GetCanonicalBbox(srs string, bbox []float64) ([]float64, error)
- func GetCoordinates(params WMSParams) (float64, float64, error)
- func GetCoverageIndex(params WCSParams, config *Config) (int, error)
- func GetCoverageStyleIndex(params WCSParams, config *Config, covIdx int) (int, error)
- func GetCurrentTimeStamp(timestamps []string) (*time.Time, error)
- func GetDriverNameFromFormat(format string) (string, error)
- func GetDummyGDALDatasetH() C.GDALDatasetH
- func GetEmptyTile(imageFilename string, height, width int) ([]byte, error)
- func GetHostURL(r *http.Request) string
- func GetLayerIndex(params WMSParams, config *Config) (int, error)
- func GetLayerStyleIndex(params WMSParams, config *Config, layerIdx int) (int, error)
- func GetPixelResolution(bbox []float64, width int, height int) float64
- func GetProcessIndex(params WPSParams, config *Config) (int, error)
- func GradientRGBAPalette(palette *Palette) ([]color.RGBA, error)
- func InitGdal()
- func InterpolateColor(a, b color.RGBA, i, sectionLength int) color.RGBA
- func InterpolateUint8(a, b uint8, i, sectionLength int) uint8
- func LoadAllConfigFiles(searchPath string, verbose bool) (map[string]*Config, error)
- func LoadConfigFileTemplate(configFile string) ([]byte, error)
- func LoadConfigFromMAS(masAddress, namespace string, rootConfig *Config, verbose bool) (map[string]*Config, error)
- func LoadConfigOnDemand(searchPath string, namespace string, verbose bool) (map[string]*Config, error)
- func LoadConfigTimestamps(config *Config, verbose bool) error
- func ParsePost(rc io.ReadCloser) (map[string][]string, error)
- func ParseQuery(query string) (m url.Values, err error)
- func ParseRemoteAddr(r *http.Request) string
- func ParseRequestProtocol(r *http.Request) string
- func PostprocessServiceConfig(config *Config, confMap map[string]*Config, verbose bool)
- func RemoveGdalTempFile(tempFile string)
- func Unmarshal(data []byte, i interface{}) error
- func ValidateRasterSlice(rs []Raster) (int, int, string, error)
- func WatchConfig(infoLog, errLog *log.Logger, configMap *sync.Map, verbose bool)
- type AxisIdxSelector
- type AxisParam
- type BandExpressionComplexityCriteria
- type BandExpressions
- type BuiltinPalettes
- type ByteRaster
- type CapabilityExtension
- type CapabilityExtensionProperty
- type CatalogueHandler
- type CompData
- type Config
- type DapConstraints
- type DapIdxSelector
- type DapVarParam
- type Data
- type DataInputs
- type Execute
- type FileList
- type Float32Raster
- type Input
- type Int16Raster
- type Layer
- type LayerAxis
- type LitData
- type MASLayers
- type Mask
- type OWSCache
- type Palette
- type Process
- type Raster
- type RuntimeFileResolver
- type ScaleParams
- type ServiceConfig
- type SignedByteRaster
- type UInt16Raster
- type WCSParams
- type WMSParams
- type WPSParams
Constants ¶
const CatalogueDirName = "catalogues"
const ColourLinearScale = 0
const ColourLogScale = 1
const DefaultConcGrpcWorkerQuery = 64
const DefaultGrpcWcsConcPerNode = 16
const DefaultGrpcWmsConcPerNode = 16
const DefaultGrpcWpsConcPerNode = 16
const DefaultLegendHeight = 320
const DefaultLegendWidth = 160
const DefaultRecvMsgSize = 10 * 1024 * 1024
const DefaultWcsMaxBandExpressions = 10
const DefaultWcsMaxBandTokens = 300
const DefaultWcsMaxBandVariables = 10
const DefaultWcsMaxHeight = 30000
const DefaultWcsMaxTileHeight = 1024
const DefaultWcsMaxTileWidth = 1024
const DefaultWcsMaxWidth = 50000
const DefaultWcsPolygonSegments = 10
const DefaultWcsPolygonShardConcLimit = 2
const DefaultWcsTimeout = 30
const DefaultWmsMaxBandExpressions = 3
const DefaultWmsMaxBandTokens = 75
const DefaultWmsMaxBandVariables = 6
const DefaultWmsMaxHeight = 512
const DefaultWmsMaxWidth = 512
const DefaultWmsPolygonSegments = 2
const DefaultWmsPolygonShardConcLimit = 2
const DefaultWmsTimeout = 20
const DefaultWpsTimeout = 300
const EmptyTileNS = "EmptyTile"
const ISOFormat = "2006-01-02T15:04:05.000Z"
ISOFormat is the string used to format Go ISO times
const ISOZeroTime = "0001-01-01T00:00:00.000Z"
const ReservedMemorySize = 1.5 * 1024 * 1024 * 1024
const WeightedTimeAxis = "weighted_time"
Variables ¶
var DataDir = "."
var EtcDir = "."
var GDALTypes = map[string]C.GDALDataType{"Unkown": 0, "Byte": 1, "SignedByte": 1, "UInt16": 2, "Int16": 3,
"UInt32": 4, "Int32": 5, "Float32": 6, "Float64": 7,
"CInt16": 8, "CInt32": 9, "CFloat32": 10, "CFloat64": 11,
"TypeCount": 12}
var GSKYVersion = "."
var WCSRegexpMap = map[string]string{"service": `^WCS$`,
"request": `^GetCapabilities$|^DescribeCoverage$|^GetCoverage$`,
"coverage": `^[A-Za-z.:0-9\s_-]+$`,
"crs": `^(?i)(?:[A-Z]+):(?:[0-9]+)$`,
"bbox": `^[-+]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?(,[-+]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?){3}$`,
"time": `^\d{4}-(?:1[0-2]|0[1-9])-(?:3[01]|0[1-9]|[12][0-9])T[0-2]\d:[0-5]\d:[0-5]\d(\.\d+)?Z$`,
"width": `^[-+]?[0-9]+$`,
"height": `^[-+]?[0-9]+$`,
"axis": `^[A-Za-z_][A-Za-z0-9_]*$`,
"format": `^(?i)(GeoTIFF|NetCDF|DAP4)$`}
WCSRegexpMap maps WCS request parameters to regular expressions for doing validation when parsing. --- These regexp do not avoid every case of --- invalid code but filter most of the malformed --- cases. Error free JSON deserialisation into types --- also validates correct values.
var WMSRegexpMap = map[string]string{"service": `^WMS$`,
"request": `^GetCapabilities$|^GetFeatureInfo$|^DescribeLayer$|^GetMap$|^GetLegendGraphic$`,
"crs": `^(?i)(?:[A-Z]+):(?:[0-9]+)$`,
"bbox": `^[-+]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?(,[-+]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?){3}$`,
"x": `^[0-9]+$`,
"y": `^[0-9]+$`,
"width": `^[0-9]+$`,
"height": `^[0-9]+$`,
"axis": `^[A-Za-z_][A-Za-z0-9_]*$`,
"time": `^\d{4}-(?:1[0-2]|0[1-9])-(?:3[01]|0[1-9]|[12][0-9])T[0-2]\d:[0-5]\d:[0-5]\d\.\d+Z$`}
WMSRegexpMap maps WMS request parameters to regular expressions for doing validation when parsing. --- These regexp do not avoid every case of --- invalid code but filter most of the malformed --- cases. Error free JSON deserialisation into types --- also validates correct values.
var WPSRegexpMap = map[string]string{"service": `^WPS$`,
"request": `^GetCapabilities$|^DescribeProcess$|^Execute$`,
"time": `^\d{4}-(?:1[0-2]|0[1-9])-(?:3[01]|0[1-9]|[12][0-9])T[0-2]\d:[0-5]\d$`}
WPSRegexpMap maps WPS request parameters to regular expressions for doing validation when parsing. --- These regexp do not avoid every case of --- invalid code but filter most of the malformed --- cases. Error free JSON deserialisation into types --- also validates correct values.
Functions ¶
func BBox2Geot ¶
BBox2Geot return the geotransform from the parameters received in a WMS GetMap request
func CheckBandExpressionsComplexity ¶ added in v1.8.0
func CheckBandExpressionsComplexity(bandExpr *BandExpressions, criteria *BandExpressionComplexityCriteria) error
func CheckDisableServices ¶
func CheckEmptyTile ¶
func CheckIndexFile ¶ added in v1.9.0
func CheckWCSVersion ¶
CheckWCSVersion checks if the requested version of WCS is supported by the server
func CheckWMSVersion ¶
func CompileWCSRegexMap ¶
func CompileWMSRegexMap ¶
func CompileWPSRegexMap ¶
func DumpDap4CE ¶
func DumpDap4CE(ce *DapConstraints)
func EncodeDap4 ¶
func EncodeGdal ¶
func EncodeGdalClose ¶
func EncodeGdalClose(hDstDS *C.GDALDatasetH)
func EncodeGdalFlush ¶
func EncodeGdalFlush(hDstDS C.GDALDatasetH)
func EncodeGdalMerge ¶
func EncodeGdalOpen ¶
func ExtractEPSGCode ¶
ExtractEPSGCode parses an SRS string and gets the EPSG code
func FindConfigGPath ¶ added in v1.9.0
func FindLayerBestOverview ¶
func GenerateDates ¶
func GenerateDatesAux ¶
func GenerateDatesChirps20 ¶
func GenerateDatesGeoglam ¶
func GenerateDatesMCD43A4 ¶
GenerateDatesMCD43A4 function is used to generate the list of ISO dates from its especification in the Config.Layer struct.
func GenerateDatesMas ¶
func GenerateDatesRegular ¶
func GenerateMonthlyDates ¶
func GenerateYearlyDates ¶
func GetCoordinates ¶
GetCoordinates returns the x and y coordinates in the original projection from the tile relative WMS parameters.
func GetCoverageIndex ¶
GetCoverageIndex returns the index of the specified layer inside the Config.Layers field.
func GetCoverageStyleIndex ¶
GetCoverageStyleIndex returns the index of the specified style inside a coverage
func GetCurrentTimeStamp ¶
GetCurrentTimeStamp gets the current timestamp if time is not specified in the HTTP request
func GetDriverNameFromFormat ¶
func GetDummyGDALDatasetH ¶
func GetDummyGDALDatasetH() C.GDALDatasetH
func GetHostURL ¶ added in v1.9.0
func GetLayerIndex ¶
GetLayerIndex returns the index of the specified layer inside the Config.Layers field.
func GetLayerStyleIndex ¶
GetLayerStyleIndex returns the index of the specified style inside a layer
func GradientRGBAPalette ¶
GradientRGBAPalette returns a palette of 256 colors creating an interpolation that goes though a list of provided colours.
func InterpolateColor ¶
InterpolateColor returns an RGBA color where the R, G, B, and A components have been interpolated from the 'a' and 'b' colors
func InterpolateUint8 ¶
InterpolateUint8 interpolates the value of a byte between two numbers 'a' and 'b' by especifying a length and a position 'i' along that length.
func LoadAllConfigFiles ¶
func LoadConfigFileTemplate ¶
LoadConfigFileTemplate parses the config as a Jet template and escapes any GSKY here docs (i.e. $gdoc$) into valid one-line JSON strings.
func LoadConfigFromMAS ¶ added in v1.9.0
func LoadConfigOnDemand ¶ added in v1.8.0
func LoadConfigTimestamps ¶ added in v1.9.0
func ParseRemoteAddr ¶
func ParseRequestProtocol ¶ added in v1.8.0
func PostprocessServiceConfig ¶ added in v1.9.0
func RemoveGdalTempFile ¶
func RemoveGdalTempFile(tempFile string)
func Unmarshal ¶
Unmarshal is wrapper around json.Unmarshal that returns user-friendly errors when there are syntax errors. https://github.com/hashicorp/packer/blob/master/common/json/unmarshal.go
Types ¶
type AxisIdxSelector ¶
type BandExpressionComplexityCriteria ¶ added in v1.8.0
type BandExpressions ¶
type BandExpressions struct { ExprText []string Expressions []*goeval.EvaluableExpression VarList []string ExprNames []string ExprVarRef [][]string }
func ParseBandExpressions ¶
func ParseBandExpressions(bands []string) (*BandExpressions, error)
type BuiltinPalettes ¶ added in v1.8.0
type BuiltinPalettes struct {
Palettes []*Palette `json:"palettes"`
}
func NewBuiltinPalettes ¶ added in v1.8.0
func NewBuiltinPalettes() *BuiltinPalettes
type ByteRaster ¶
func Scale ¶
func Scale(rs []Raster, params ScaleParams) ([]*ByteRaster, error)
func (*ByteRaster) GetNoData ¶
func (r *ByteRaster) GetNoData() float64
type CapabilityExtension ¶ added in v1.8.0
type CapabilityExtension struct { Name string `json:"name"` Version string `json:"version"` Layer Layer `json:"layer"` ResourceURL string `json:"resource_url"` Properties []CapabilityExtensionProperty `json:"properties"` }
type CapabilityExtensionProperty ¶ added in v1.8.0
type CatalogueHandler ¶ added in v1.9.0
type CatalogueHandler struct { Path string URLHost string URLPathRoot string StaticRoot string MasAddress string IndexTemplateRoot string Verbose bool Output http.ResponseWriter }
func NewCatalogueHandler ¶ added in v1.9.0
func NewCatalogueHandler(path, urlHost, urlPathRoot, staticRoot, masAddress, indexTemplateRoot string, verbose bool, output http.ResponseWriter) *CatalogueHandler
func (*CatalogueHandler) Process ¶ added in v1.9.0
func (h *CatalogueHandler) Process() int
type CompData ¶
type CompData struct { Identifier string `json:"identifier"` Title string `json:"title"` Abstract string `json:"abstract"` MimeType string `json:"mime_type"` Encoding string `json:"encoding"` Schema string `json:"schema"` MinOccurs int `json:"min_occurs"` }
CompData contains the description of a variable used to compute a WPS operation
type Config ¶
type Config struct { ServiceConfig ServiceConfig `json:"service_config"` Layers []Layer `json:"layers"` Processes []Process `json:"processes"` Extensions []CapabilityExtension `json:"extensions"` }
Config is the struct representing the configuration of a WMS server. It contains information about the file index API as well as the list of WMS layers that can be served.
func GetRootConfig ¶ added in v1.9.0
func (*Config) Copy ¶
CopyConfig makes a deep copy of the certain fields of the config object. For the time being, we only copy the fields required for GetCapabilities.
func (*Config) GetLayerDates ¶
GetLayerDates loads dates for the ith layer
func (*Config) LoadConfigFile ¶
LoadConfigFile marshalls the config.json document returning an instance of a Config variable containing all the values
type DapConstraints ¶
type DapConstraints struct { Dataset string VarParams []*DapVarParam }
func ParseDap4ConstraintExpr ¶
func ParseDap4ConstraintExpr(ceStr string) (*DapConstraints, error)
type DapIdxSelector ¶
type DapVarParam ¶
type DapVarParam struct { Name string ValStart *float64 ValEnd *float64 IdxSelectors []*DapIdxSelector IsAxis bool }
type DataInputs ¶
type DataInputs struct {
Input []Input
}
type Execute ¶
type Execute struct { Version string `xml:"version,attr"` Service string `xml:"service,attr"` Identifier string DataInputs DataInputs }
type FileList ¶
type FileList struct {
Files []string `json:"files"`
}
FileList is the struct used to unmarshal the reponse from the index API
type Float32Raster ¶
func (*Float32Raster) GetNoData ¶
func (r *Float32Raster) GetNoData() float64
type Int16Raster ¶
func (*Int16Raster) GetNoData ¶
func (r *Int16Raster) GetNoData() float64
type Layer ¶
type Layer struct { OWSHostname string `json:"ows_hostname"` OWSProtocol string `json:"ows_protocol"` MASAddress string `json:"mas_address"` NameSpace string `json:"namespace"` Name string `json:"name"` Title string `json:"title"` Abstract string `json:"abstract"` MetadataURL string `json:"metadata_url"` VRTURL string `json:"vrt_url"` DataURL string `json:"data_url"` Overviews []Layer `json:"overviews"` InputLayers []Layer `json:"input_layers"` DisableServices []string `json:"disable_services"` DisableServicesMap map[string]struct{} DataSource string `json:"data_source"` StartISODate string `json:"start_isodate"` EndISODate string `json:"end_isodate"` EffectiveStartDate string EffectiveEndDate string TimestampToken string StepDays int `json:"step_days"` StepHours int `json:"step_hours"` StepMinutes int `json:"step_minutes"` Accum bool `json:"accum"` TimeGen string `json:"time_generator"` Dates []string `json:"dates"` RGBProducts []string `json:"rgb_products"` RGBExpressions *BandExpressions Mask *Mask `json:"mask"` OffsetValue float64 `json:"offset_value"` ClipValue float64 `json:"clip_value"` ScaleValue float64 `json:"scale_value"` Palette *Palette `json:"palette"` Palettes []*Palette `json:"palettes"` LegendPath string `json:"legend_path"` LegendHeight int `json:"legend_height"` LegendWidth int `json:"legend_width"` Styles []Layer `json:"styles"` ZoomLimit float64 `json:"zoom_limit"` MaxGrpcRecvMsgSize int `json:"max_grpc_recv_msg_size"` WmsPolygonSegments int `json:"wms_polygon_segments"` WcsPolygonSegments int `json:"wcs_polygon_segments"` WmsTimeout int `json:"wms_timeout"` WcsTimeout int `json:"wcs_timeout"` GrpcWmsConcPerNode int `json:"grpc_wms_conc_per_node"` GrpcWcsConcPerNode int `json:"grpc_wcs_conc_per_node"` GrpcWpsConcPerNode int `json:"grpc_wps_conc_per_node"` WmsPolygonShardConcLimit int `json:"wms_polygon_shard_conc_limit"` WcsPolygonShardConcLimit int `json:"wcs_polygon_shard_conc_limit"` BandStrides int `json:"band_strides"` WmsMaxWidth int `json:"wms_max_width"` WmsMaxHeight int `json:"wms_max_height"` WcsMaxWidth int `json:"wcs_max_width"` WcsMaxHeight int `json:"wcs_max_height"` WcsMaxTileWidth int `json:"wcs_max_tile_width"` WcsMaxTileHeight int `json:"wcs_max_tile_height"` FeatureInfoMaxAvailableDates int `json:"feature_info_max_dates"` FeatureInfoMaxDataLinks int `json:"feature_info_max_data_links"` FeatureInfoDataLinkUrl string `json:"feature_info_data_link_url"` FeatureInfoBands []string `json:"feature_info_bands"` FeatureInfoExpressions *BandExpressions NoDataLegendPath string `json:"nodata_legend_path"` AxesInfo []*LayerAxis `json:"axes"` UserSrcSRS int `json:"src_srs"` UserSrcGeoTransform int `json:"src_geo_transform"` DefaultGeoBbox []float64 `json:"default_geo_bbox"` DefaultGeoSize []int `json:"default_geo_size"` WmsAxisMapping int `json:"wms_axis_mapping"` GrpcTileXSize float64 `json:"grpc_tile_x_size"` GrpcTileYSize float64 `json:"grpc_tile_y_size"` IndexTileXSize float64 `json:"index_tile_x_size"` IndexTileYSize float64 `json:"index_tile_y_size"` SpatialExtent []float64 `json:"spatial_extent"` IndexResLimit float64 `json:"index_res_limit"` ColourScale int `json:"colour_scale"` TimestampsLoadStrategy string `json:"timestamps_load_strategy"` MasQueryHint string `json:"mas_query_hint"` SRSCf int `json:"srs_cf"` Visibility string `json:"visibility"` RasterXSize float64 `json:"raster_x_size"` RasterYSize float64 `json:"raster_y_size"` WmsBandExpressionCriteria *BandExpressionComplexityCriteria `json:"wms_band_expr_criteria"` WcsBandExpressionCriteria *BandExpressionComplexityCriteria `json:"wcs_band_expr_criteria"` }
Layer contains all the details that a layer needs to be published and rendered
type LitData ¶
type LitData struct { Identifier string `json:"identifier"` Title string `json:"title"` Abstract string `json:"abstract"` DataType string `json:"data_type"` DataTypeRef string `json:"data_type_ref"` AllowedValues []string `json:"allowed_values"` MinOccurs int `json:"min_occurs"` }
LitData contains the description of a variable used to compute a WPS operation
type OWSCache ¶ added in v1.9.0
func NewOWSCache ¶ added in v1.9.0
type Process ¶
type Process struct { DataSources []Layer `json:"data_sources"` Identifier string `json:"identifier"` Title string `json:"title"` Abstract string `json:"abstract"` MaxArea float64 `json:"max_area"` LiteralData []LitData `json:"literal_data"` ComplexData []CompData `json:"complex_data"` IdentityTol float64 `json:"identity_tol"` DpTol float64 `json:"dp_tol"` Approx *bool `json:"approx,omitempty"` DrillAlgorithm string `json:"drill_algo,omitempty"` WpsTimeout int `json:"wps_timeout"` }
Process contains all the details that a WPS needs to be published and processed
type RuntimeFileResolver ¶ added in v1.9.0
type RuntimeFileResolver struct { DataDirs []string // contains filtered or unexported fields }
func NewRuntimeFileResolver ¶ added in v1.9.0
func NewRuntimeFileResolver(searchPath string) *RuntimeFileResolver
type ScaleParams ¶
type ServiceConfig ¶
type ServiceConfig struct { OWSHostname string `json:"ows_hostname"` OWSProtocol string `json:"ows_protocol"` NameSpace string MASAddress string `json:"mas_address"` WorkerNodes []string `json:"worker_nodes"` OWSClusterNodes []string `json:"ows_cluster_nodes"` TempDir string `json:"temp_dir"` MaxGrpcBufferSize int `json:"max_grpc_buffer_size"` EnableAutoLayers bool `json:"enable_auto_layers"` OWSCacheGPath string `json:"ows_cache_gpath"` }
type SignedByteRaster ¶
func (*SignedByteRaster) GetNoData ¶
func (r *SignedByteRaster) GetNoData() float64
type UInt16Raster ¶
func (*UInt16Raster) GetNoData ¶
func (r *UInt16Raster) GetNoData() float64
type WCSParams ¶
type WCSParams struct { Service *string `json:"service,omitempty"` Version *string `json:"version,omitempty"` Request *string `json:"request,omitempty"` Coverages []string `json:"coverage,omitempty"` CRS *string `json:"crs,omitempty"` ReqCRS *string `json:"req_crs,omitempty"` BBox []float64 `json:"bbox,omitempty"` Time *time.Time `json:"time,omitempty"` Height *int `json:"height,omitempty"` Width *int `json:"width,omitempty"` Format *string `json:"format,omitempty"` Styles []string `json:"styles,omitempty"` Axes []*AxisParam `json:"axes,omitempty"` BandExpr *BandExpressions NoReprojection bool AxisMapping int }
WCSParams contains the serialised version of the parameters contained in a WCS request.
type WMSParams ¶
type WMSParams struct { Service *string `json:"service,omitempty"` Request *string `json:"request,omitempty"` CRS *string `json:"crs,omitempty"` BBox []float64 `json:"bbox,omitempty"` Format *string `json:"format,omitempty"` X *int `json:"x,omitempty"` Y *int `json:"y,omitempty"` Height *int `json:"height,omitempty"` Width *int `json:"width,omitempty"` Time *time.Time `json:"time,omitempty"` Layers []string `json:"layers,omitempty"` Styles []string `json:"styles,omitempty"` Version *string `json:"version,omitempty"` Axes []*AxisParam `json:"axes,omitempty"` Offset *float64 `json:"offset,omitempty"` Clip *float64 `json:"clip,omitempty"` Palette *string `json:"palette,omitempty"` ColourScale *int `json:"colour_scale,omitempty"` BandExpr *BandExpressions }
WMSParams contains the serialised version of the parameters contained in a WMS request.
type WPSParams ¶
type WPSParams struct { Service *string `json:"service"` Request *string `json:"request"` Identifier *string `json:"identifier"` StartDateTime *string `json:"start_datetime"` EndDateTime *string `json:"end_datetime"` Product *string `json:"product"` FeatCol geo.FeatureCollection `json:"feature_collection"` GeometryId *string `json:"geometry_id"` ClipUppers map[string]float32 `json:"clip_uppers"` ClipLowers map[string]float32 `json:"clip_lowers"` }
WPSParams contains the serialised version of the parameters contained in a WPS request.