features

package
v1.6.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LimitParam   = "limit"
	CrsParam     = "crs"
	BboxParam    = "bbox"
	BboxCrsParam = "bbox-crs"
)

Variables

This section is empty.

Functions

func CreateDatasources added in v1.5.0

func CreateDatasources(oafCfg config.OgcAPIFeatures, shutdownHook func(fn func())) map[DatasourceKey]ds.Datasource

func DetermineAxisOrder added in v1.5.0

func DetermineAxisOrder(datasources map[DatasourceKey]ds.Datasource) map[int]domain.AxisOrder

func ParseBbox added in v1.5.0

func ParseBbox(params url.Values) (*geom.Bounds, d.SRID, error)

func ParseCrsToContentCrs added in v1.5.0

func ParseCrsToContentCrs(params url.Values) d.ContentCrs

func ParseCrsToSRID added in v1.5.0

func ParseCrsToSRID(params url.Values, paramName string) (d.SRID, error)

func ParseLimit added in v1.5.0

func ParseLimit(params url.Values, limitCfg config.Limit) (int, error)

Types

type DatasourceKey

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

type Features

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

func NewFeatures

func NewFeatures(e *engine.Engine) *Features

NewFeatures Bootstraps OGC API Features logic.

func (*Features) Feature

func (f *Features) Feature() http.HandlerFunc

Feature endpoint serves a single Feature by ID

func (*Features) Features

func (f *Features) Features() http.HandlerFunc

Features this endpoint serves a FeatureCollection with the given collectionId

BEWARE: this is one of the most performance-sensitive pieces of code in the system. Try to do as much initialization work outside the hot path, only do essential operations inside this method.

func (*Features) GetCollectionTypes added in v1.2.0

func (f *Features) GetCollectionTypes() geospatial.CollectionTypes

func (*Features) Schema added in v0.75.0

func (f *Features) Schema() http.HandlerFunc

Schema endpoint serves a schema that describes the features in the collection, either as HTML or as JSON schema (https://json-schema.org/)

type OpenAPIPropertyFilter

type OpenAPIPropertyFilter struct {
	Name          string
	Description   string
	DataType      string
	AllowedValues []string
}

Directories

Path Synopsis
geopackage/encoding
Package encoding based on https://github.com/go-spatial/geom/blob/master/encoding/gpkg/binary_header.go
Package encoding based on https://github.com/go-spatial/geom/blob/master/encoding/gpkg/binary_header.go

Jump to

Keyboard shortcuts

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