s2

package
v0.0.0-...-0cf958a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlatCoverer

type FlatCoverer struct {
	*s2.RegionCoverer
}

Embeds a s2.RegionCover, but does it's own covering Pick the deepest level and normalize a cellunion The default coverer didn't trim on the boundary...

func NewFlatCoverer

func NewFlatCoverer(level int) *FlatCoverer

func (*FlatCoverer) CellUnion

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

func (*FlatCoverer) Covering

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

func (*FlatCoverer) InteriorCellUnion

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

func (*FlatCoverer) InteriorCovering

func (c *FlatCoverer) InteriorCovering(r s2.Region) s2.CellUnion

type LoopRegion

type LoopRegion struct {
	*s2.Loop
}

Making s2.Loop implement s2.Region

func LoopRegionFromPoints

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

func (*LoopRegion) CapBound

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

func (*LoopRegion) ContainsCell

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

func (*LoopRegion) IntersectsCell

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

type S2fence

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

func NewS2fence

func NewS2fence(zoom int) *S2fence

func (*S2fence) Add

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

func (*S2fence) Get

func (s *S2fence) Get(c geo.Coordinate) (matchs []*geo.Feature)

Jump to

Keyboard shortcuts

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