Help us shape the future of Go! Take the 2026 Go Developer Survey

gis

package
v0.3.45 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFeaturePath        = errors.New("invalid feature path")
	ErrInvalidSummaryExtentValue = errors.New("invalid summary extent value")
)
View Source
var (
	ErrEmptyRequest = errors.New("empty request")
)

Functions

This section is empty.

Types

type Bbox

type Bbox struct {
	Crs  string    `json:"crs"`
	Bbox []float64 `json:"bbox"`
}

--- @See https://raw.githubusercontent.com/opengeospatial/WFS_FES/master/core/openapi/schemas/bbox.yaml

type Collection

type Collection struct {
	Name               string
	Description        string
	Namespace          string
	NamespaceBaseURL   string
	NamespaceSchemaDir string

	Variables  *openapi3.Schema
	Definition *openapi3.Schema

	Links []Link

	QueryType string // Type of query for the collection, data object or saved query

	// GraphQL paths for the data object
	Query                 string
	QueryFeature          string
	QueryFeatureIdVarName string
	QueryFeatureIdType    *openapi3.Schema

	IsReadOnly     bool
	MutationInsert string
	MutationUpdate string
	MutationDelete string

	// Saved query
	QueryName string // Name of the saved query
}

Collection represents a GIS collection with its metadata and links.

type CollectionInfo

type CollectionInfo struct {
	Name          string   `json:"name"`
	Title         string   `json:"title,omitempty"`
	Description   string   `json:"description,omitempty"`
	Links         []Link   `json:"links"`
	Extent        *Bbox    `json:"extent,omitempty"`
	Crs           []string `json:"crs,omitempty"`
	IsEnabledWFS1 bool     `json:"-"`
}

--- @See https://raw.githubusercontent.com/opengeospatial/WFS_FES/master/core/openapi/schemas/collectionInfo.yaml

for collectionInfo schema

type CollectionsInfo

type CollectionsInfo struct {
	Links       []Link           `json:"links"`
	Collections []CollectionInfo `json:"collections"`
}

--- @See https://raw.githubusercontent.com/opengeospatial/WFS_FES/master/core/openapi/schemas/content.yaml

for collectionsInfo schema.

type Config

type Config struct {
	Querier types.Querier
	Schema  *catalog.Service

	// Other dependencies can be added here
	CacheTTL  time.Duration // Cache TTL for collections
	CacheSize int           // Size of the cache for collections
}

type ConformanceClasses

type ConformanceClasses struct {
	ConformsTo []string `json:"conformsTo"`
}

--- @See https://raw.githubusercontent.com/opengeospatial/WFS_FES/master/core/openapi/schemas/req-classes.yaml

for ConformanceClasses schema
type Link struct {
	Href     string `json:"href"`
	Rel      string `json:"rel"`
	Type     string `json:"type"`
	Hreflang string `json:"hreflang"`
	Title    string `json:"title"`
}

--- @See https://raw.githubusercontent.com/opengeospatial/WFS_FES/master/core/openapi/schemas/link.yaml

for link schema

type RootContent

type RootContent struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Links       []Link `json:"links"`
}

--- @See http://raw.githubusercontent.com/opengeospatial/WFS_FES/master/core/openapi/schemas/root.yaml

for rootContentSchema Definition

What the endpoint at "/" returns

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Service

func (*Service) Init

func (s *Service) Init() error

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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