Versions in this module Expand all Collapse all v1 v1.9.3 Aug 31, 2021 v1.9.2 Jul 28, 2021 v1.9.1 Jul 16, 2021 v1.9.0 May 9, 2021 Changes in this version + const CatalogueDirName + var GSKYVersion = "." + func CheckIndexFile(staticRoot string, path string, verbose bool) string + func FindConfigGPath(config *Config) string + func GetHostURL(r *http.Request) string + func LoadConfigFromMAS(masAddress, namespace string, rootConfig *Config, verbose bool) (map[string]*Config, error) + func LoadConfigTimestamps(config *Config, verbose bool) error + func PostprocessServiceConfig(config *Config, confMap map[string]*Config, verbose bool) + type CatalogueHandler struct + IndexTemplateRoot string + MasAddress string + Output http.ResponseWriter + Path string + StaticRoot string + URLHost string + URLPathRoot string + Verbose bool + func NewCatalogueHandler(path, urlHost, urlPathRoot, staticRoot, masAddress, indexTemplateRoot string, ...) *CatalogueHandler + func (h *CatalogueHandler) Process() int type Config + func GetRootConfig(searchPath string, verbose bool) (*Config, error) + func (config *Config) LoadConfigString(cfg []byte, verbose bool) error + type MASLayers struct + Error string + Layers []Layer + func LoadLayersFromMAS(masAddress, namespace string, verbose bool) (*MASLayers, error) + type OWSCache struct + GPath string + MASAddress string + func NewOWSCache(masAddress, gpath string, verbose bool) *OWSCache + func (o *OWSCache) Get(query string) ([]byte, error) + func (o *OWSCache) GetConfig(query string) (*Config, error) + func (o *OWSCache) Put(query string, value string) error + type RuntimeFileResolver struct + DataDirs []string + func NewRuntimeFileResolver(searchPath string) *RuntimeFileResolver + func (r *RuntimeFileResolver) Lookup(filePath string) (string, error) + func (r *RuntimeFileResolver) Resolve(filePath string) (string, error) type ServiceConfig + EnableAutoLayers bool + OWSCacheGPath string v1.8.1 Apr 19, 2021 v1.8.0 Feb 19, 2021 Changes in this version + const DefaultWcsMaxBandExpressions + const DefaultWcsMaxBandTokens + const DefaultWcsMaxBandVariables + const DefaultWmsMaxBandExpressions + const DefaultWmsMaxBandTokens + const DefaultWmsMaxBandVariables + func CheckBandExpressionsComplexity(bandExpr *BandExpressions, criteria *BandExpressionComplexityCriteria) error + func LoadConfigOnDemand(searchPath string, namespace string, verbose bool) (map[string]*Config, error) + func ParseRequestProtocol(r *http.Request) string + type BandExpressionComplexityCriteria struct + MaxExpressions int + MaxTokens int + MaxVariables int + TokenACL map[string]interface{} + VariableLookup map[string]struct{} + type BuiltinPalettes struct + Palettes []*Palette + func NewBuiltinPalettes() *BuiltinPalettes + type CapabilityExtension struct + Layer Layer + Name string + Properties []CapabilityExtensionProperty + ResourceURL string + Version string + type CapabilityExtensionProperty struct + Name string + Value string type Config + Extensions []CapabilityExtension type Layer + OWSProtocol string + WcsBandExpressionCriteria *BandExpressionComplexityCriteria + WmsBandExpressionCriteria *BandExpressionComplexityCriteria type ServiceConfig + OWSProtocol string v1.7.2 Aug 24, 2020 Changes in this version + const ColourLinearScale + const ColourLogScale + const DefaultConcGrpcWorkerQuery + const DefaultGrpcWcsConcPerNode + const DefaultGrpcWmsConcPerNode + const DefaultGrpcWpsConcPerNode + const DefaultLegendHeight + const DefaultLegendWidth + const DefaultRecvMsgSize + const DefaultWcsMaxHeight + const DefaultWcsMaxTileHeight + const DefaultWcsMaxTileWidth + const DefaultWcsMaxWidth + const DefaultWcsPolygonSegments + const DefaultWcsPolygonShardConcLimit + const DefaultWcsTimeout + const DefaultWmsMaxHeight + const DefaultWmsMaxWidth + const DefaultWmsPolygonSegments + const DefaultWmsPolygonShardConcLimit + const DefaultWmsTimeout + const DefaultWpsTimeout + const EmptyTileNS + const ISOFormat + const ISOZeroTime + const ReservedMemorySize + const WeightedTimeAxis + var DataDir = "." + var EtcDir = "." + var GDALTypes = map[string]C.GDALDataType + var WCSRegexpMap = map[string]string + var WMSRegexpMap = map[string]string + var WPSRegexpMap = map[string]string + func BBox2Geot(width, height int, bbox []float64) []float64 + func CheckDisableServices(layer *Layer, service string) bool + func CheckEmptyTile(rs []Raster) (bool, error) + 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 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 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 ParsePost(rc io.ReadCloser) (map[string][]string, error) + func ParseQuery(query string) (m url.Values, err error) + func ParseRemoteAddr(r *http.Request) string + 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 struct + End *int + IsAll bool + IsRange bool + Start *int + Step *int + type AxisParam struct + Aggregate int + End *float64 + IdxSelectors []*AxisIdxSelector + InValues []float64 + Name string + Order int + Start *float64 + type BandExpressions struct + ExprNames []string + ExprText []string + ExprVarRef [][]string + Expressions []*goeval.EvaluableExpression + VarList []string + func ParseBandExpressions(bands []string) (*BandExpressions, error) + type ByteRaster struct + Data []uint8 + Height int + NameSpace string + NoData float64 + Width int + func Scale(rs []Raster, params ScaleParams) ([]*ByteRaster, error) + func (r *ByteRaster) GetNoData() float64 + type CompData struct + Abstract string + Encoding string + Identifier string + MimeType string + MinOccurs int + Schema string + Title string + type Config struct + Layers []Layer + Processes []Process + ServiceConfig ServiceConfig + func (config *Config) Copy(r *http.Request) *Config + func (config *Config) GetLayerDates(iLayer int, verbose bool) + func (config *Config) LoadConfigFile(configFile string, verbose bool) error + type DapConstraints struct + Dataset string + VarParams []*DapVarParam + func ParseDap4ConstraintExpr(ceStr string) (*DapConstraints, error) + type DapIdxSelector struct + End *int + IsAll bool + IsRange bool + Start *int + Step *int + type DapVarParam struct + IdxSelectors []*DapIdxSelector + IsAxis bool + Name string + ValEnd *float64 + ValStart *float64 + type Data struct + ComplexData string + LiteralData string + type DataInputs struct + Input []Input + type Execute struct + DataInputs DataInputs + Identifier string + Service string + Version string + type FileList struct + Files []string + type Float32Raster struct + Data []float32 + Height int + NameSpace string + NoData float64 + Width int + func (r *Float32Raster) GetNoData() float64 + type Input struct + Data Data + Identifier string + type Int16Raster struct + Data []int16 + Height int + NameSpace string + NoData float64 + Width int + func (r *Int16Raster) GetNoData() float64 + type Layer struct + Abstract string + Accum bool + AxesInfo []*LayerAxis + BandStrides int + ClipValue float64 + ColourScale int + DataSource string + DataURL string + Dates []string + DefaultGeoBbox []float64 + DefaultGeoSize []int + DisableServices []string + DisableServicesMap map[string]struct{} + EffectiveEndDate string + EffectiveStartDate string + EndISODate string + FeatureInfoBands []string + FeatureInfoDataLinkUrl string + FeatureInfoExpressions *BandExpressions + FeatureInfoMaxAvailableDates int + FeatureInfoMaxDataLinks int + GrpcTileXSize float64 + GrpcTileYSize float64 + GrpcWcsConcPerNode int + GrpcWmsConcPerNode int + GrpcWpsConcPerNode int + IndexResLimit float64 + IndexTileXSize float64 + IndexTileYSize float64 + InputLayers []Layer + LegendHeight int + LegendPath string + LegendWidth int + MASAddress string + MasQueryHint string + Mask *Mask + MaxGrpcRecvMsgSize int + MetadataURL string + Name string + NameSpace string + NoDataLegendPath string + OWSHostname string + OffsetValue float64 + Overviews []Layer + Palette *Palette + Palettes []*Palette + RGBExpressions *BandExpressions + RGBProducts []string + RasterXSize float64 + RasterYSize float64 + SRSCf int + ScaleValue float64 + SpatialExtent []float64 + StartISODate string + StepDays int + StepHours int + StepMinutes int + Styles []Layer + TimeGen string + TimestampToken string + TimestampsLoadStrategy string + Title string + UserSrcGeoTransform int + UserSrcSRS int + VRTURL string + Visibility string + WcsMaxHeight int + WcsMaxTileHeight int + WcsMaxTileWidth int + WcsMaxWidth int + WcsPolygonSegments int + WcsPolygonShardConcLimit int + WcsTimeout int + WmsAxisMapping int + WmsMaxHeight int + WmsMaxWidth int + WmsPolygonSegments int + WmsPolygonShardConcLimit int + WmsTimeout int + ZoomLimit float64 + type LayerAxis struct + Default string + Name string + Values []string + type LitData struct + Abstract string + AllowedValues []string + DataType string + DataTypeRef string + Identifier string + MinOccurs int + Title string + type Mask struct + BitTests []string + DataSource string + ID string + IDExpressions *BandExpressions + Inclusive bool + Value string + type Palette struct + Colours []color.RGBA + Interpolate bool + Name string + type Process struct + Abstract string + Approx *bool + ComplexData []CompData + DataSources []Layer + DpTol float64 + DrillAlgorithm string + Identifier string + IdentityTol float64 + LiteralData []LitData + MaxArea float64 + Title string + WpsTimeout int + type Raster interface + GetNoData func() float64 + type ScaleParams struct + Clip float64 + ColourScale int + Offset float64 + Scale float64 + type ServiceConfig struct + MASAddress string + MaxGrpcBufferSize int + NameSpace string + OWSClusterNodes []string + OWSHostname string + TempDir string + WorkerNodes []string + type SignedByteRaster struct + Data []int8 + Height int + NameSpace string + NoData float64 + Width int + func (r *SignedByteRaster) GetNoData() float64 + type UInt16Raster struct + Data []uint16 + Height int + NameSpace string + NoData float64 + Width int + func (r *UInt16Raster) GetNoData() float64 + type WCSParams struct + Axes []*AxisParam + AxisMapping int + BBox []float64 + BandExpr *BandExpressions + CRS *string + Coverages []string + Format *string + Height *int + NoReprojection bool + ReqCRS *string + Request *string + Service *string + Styles []string + Time *time.Time + Version *string + Width *int + func WCSParamsChecker(params map[string][]string, compREMap map[string]*regexp.Regexp) (WCSParams, error) + type WMSParams struct + Axes []*AxisParam + BBox []float64 + BandExpr *BandExpressions + CRS *string + Clip *float64 + ColourScale *int + Format *string + Height *int + Layers []string + Offset *float64 + Palette *string + Request *string + Service *string + Styles []string + Time *time.Time + Version *string + Width *int + X *int + Y *int + func WMSParamsChecker(params map[string][]string, compREMap map[string]*regexp.Regexp) (WMSParams, error) + type WPSParams struct + ClipLowers map[string]float32 + ClipUppers map[string]float32 + EndDateTime *string + FeatCol geo.FeatureCollection + GeometryId *string + Identifier *string + Product *string + Request *string + Service *string + StartDateTime *string + func WPSParamsChecker(params map[string][]string, compREMap map[string]*regexp.Regexp) (WPSParams, error)