transform

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const WGS84 = 4326

Variables

This section is empty.

Functions

This section is empty.

Types

type RawRecord

type RawRecord struct {
	FeatureID    int64
	FieldValues  []any
	Bbox         *geom.Extent
	GeometryType string
}

type SearchIndexRecord

type SearchIndexRecord struct {
	FeatureID         string
	CollectionID      string
	CollectionVersion int
	DisplayName       string
	Suggest           string
	GeometryType      string
	Bbox              *pggeom.Polygon
}

type SubstAndSynonyms added in v0.1.3

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

func NewSubstAndSynonyms added in v0.1.3

func NewSubstAndSynonyms(substitutionsFile, synonymsFile string) (*SubstAndSynonyms, error)

type Transformer

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

func NewTransformer added in v0.1.5

func NewTransformer(substitutionsFile string, synonymsFile string) (*Transformer, error)

func (Transformer) Transform

func (t Transformer) Transform(records []RawRecord, collection config.GeoSpatialCollection) ([]SearchIndexRecord, error)

Jump to

Keyboard shortcuts

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