geospatial

package
v0.0.0-...-bbf0bf7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeospatialIndex

type GeospatialIndex[G geom.T] struct {
	Metadata metadata      `json:"metadata"`
	Index    rtreego.Rtree `json:"index"`
}

func New

func New[G geom.T](columnName string, dimensions int) *GeospatialIndex[G]

New creates a new Geospatial index object

func (*GeospatialIndex[G]) AddValue

func (i *GeospatialIndex[G]) AddValue(id string, value interface{}) bool

func (*GeospatialIndex[G]) Deserialize

func (i *GeospatialIndex[G]) Deserialize(data []byte) error

TODO: implement this once there is an actual index system

func (*GeospatialIndex[G]) GetColumnName

func (i *GeospatialIndex[G]) GetColumnName() string

func (*GeospatialIndex[G]) GetIndexType

func (i *GeospatialIndex[G]) GetIndexType() indexer.IndexType

func (*GeospatialIndex[G]) MarshalJSON

func (i *GeospatialIndex[G]) MarshalJSON() ([]byte, error)

func (*GeospatialIndex[G]) Search

func (i *GeospatialIndex[G]) Search(value interface{}) []uint32

type SortedIndexJSON

type SortedIndexJSON[G geom.T] struct {
	Metadata metadata `json:"metadata"`
}

Jump to

Keyboard shortcuts

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