geom

package
v0.0.0-...-e550801 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureRef

type FeatureRef struct {
	Id   int64
	Type int
	Zoom int
}

type Node

type Node struct {
	Lon_, Lat_ float64
	Id         int64
}

func (Node) Draw

func (n Node) Draw(t types.ITile, nodes map[int64]types.IPoint)

func (*Node) Lat

func (n *Node) Lat() float64

func (*Node) Lon

func (n *Node) Lon() float64

type S2Index

type S2Index map[s2.CellID]([]FeatureRef)

func (S2Index) AddWay

func (si S2Index) AddWay(w Way, zoom int)

func (S2Index) GetFeatures

func (si S2Index) GetFeatures(nwPt, sePt types.IPoint, zoom int) []FeatureRef

type Way

type Way struct {
	NodeIDs []int64
	Id      int64
	Tags    map[string]string
	Nodes   []types.IPoint
}

func (Way) Draw

func (w Way) Draw(t types.ITile)

func (Way) MatchAny

func (w Way) MatchAny(rules map[int][]types.Tag) (int, bool)

func (*Way) SetNodes

func (w *Way) SetNodes(nodes map[int64]types.IPoint)

Jump to

Keyboard shortcuts

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