drivers

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BboxFence

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

func NewBboxFence

func NewBboxFence() *BboxFence

func (*BboxFence) Add

func (b *BboxFence) Add(feature *geo.Feature)

func (*BboxFence) Get

func (b *BboxFence) Get(c geo.Coordinate) (matches []*geo.Feature)

type BruteFence

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

func NewBruteFence

func NewBruteFence() *BruteFence

func (*BruteFence) Add

func (b *BruteFence) Add(feature *geo.Feature)

func (*BruteFence) Get

func (b *BruteFence) Get(c geo.Coordinate) (matches []*geo.Feature)

func (*BruteFence) Size

func (b *BruteFence) Size() int

type FlatCoverer

type FlatCoverer struct {
	*s2.RegionCoverer
}

func NewFlatCoverer

func NewFlatCoverer(level int) *FlatCoverer

func (*FlatCoverer) CellUnion

func (c *FlatCoverer) CellUnion(region s2.Region) s2.CellUnion

func (*FlatCoverer) Covering

func (c *FlatCoverer) Covering(r s2.Region) (cover s2.CellUnion)

func (*FlatCoverer) InteriorCellUnion

func (c *FlatCoverer) InteriorCellUnion(region s2.Region) s2.CellUnion

func (*FlatCoverer) InteriorCovering

func (c *FlatCoverer) InteriorCovering(region s2.Region) (cover s2.CellUnion)

type LoopRegion

type LoopRegion struct {
	*s2.Loop
}

func LoopRegionFromPoints

func LoopRegionFromPoints(points []s2.Point) *LoopRegion

func (*LoopRegion) CapBound

func (l *LoopRegion) CapBound() s2.Cap

func (*LoopRegion) ContainsCell

func (l *LoopRegion) ContainsCell(cell s2.Cell) bool

func (*LoopRegion) IntersectsCell

func (l *LoopRegion) IntersectsCell(cell s2.Cell) bool

type Rtree

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

Standard rtree with M=50

func NewRtree

func NewRtree() *Rtree

func (*Rtree) Add

func (r *Rtree) Add(feature *geo.Feature)

func (*Rtree) Get

func (r *Rtree) Get(coordinate geo.Coordinate) (matches []*geo.Feature)

type S2fence

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

func NewS2fence

func NewS2fence(resolution int) *S2fence

func (*S2fence) Add

func (s *S2fence) Add(f *geo.Feature)

func (*S2fence) Get

func (s *S2fence) Get(coordinate geo.Coordinate) (matches []*geo.Feature)

Jump to

Keyboard shortcuts

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