transform

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawRecord

type RawRecord struct {
	FeatureID         int64
	FieldValues       []any
	ExternalFidValues []any
	ExternalFidBase   string
	Bbox              *geom.Bounds
	GeometryType      string
	Geometry          *geom.Point
}

type SearchIndexRecord

type SearchIndexRecord struct {
	FeatureID         string
	ExternalFid       *string
	CollectionID      string
	CollectionVersion int
	DisplayName       string
	Suggest           string
	GeometryType      string
	Bbox              *geom.Polygon
	Geometry          *geom.Point
}

type Transformer

type Transformer struct{}

func NewTransformer added in v0.1.5

func NewTransformer() *Transformer

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