shapeindex

package
v0.0.0-...-12b612f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 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 Index

type Index struct {
	sync.Mutex
	*s2.ShapeIndex
	*s2.ContainsPointQuery
}

Index using s2.ShapeIndexStrategy.

func New

func New() *Index

func (*Index) Add

func (idx *Index) Add(si *insideout.FeatureStorage, id uint32) error

func (*Index) Stab

func (idx *Index) Stab(lat, lng float64) (insideout.IndexResponse, error)

Stab returns polygon's ids we are inside and polygon's ids we may be inside in case of this index we are always in.

Jump to

Keyboard shortcuts

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