tools

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Continue to first child rectangle and/or next sibling.
	Continue = iota
	// Ignore child rectangles but continue to next sibling.
	Ignore
	// Stop iterating
	Stop
)

Variables

This section is empty.

Functions

func Cities

func Cities(bigJSON string) [][2]float64

Cities returns big list of cities base on json from https://github.com/lutangar/cities.json

func SVG

func SVG(tr RTree) string

SVG prints 2D rtree in wgs84 coordinate space

Types

type RTree

type RTree interface {
	Insert(min, max []float64, value interface{})
	Scan(iter func(min, max []float64, value interface{}) bool)
	Search(min, max []float64, iter func(min, max []float64,
		value interface{}) bool)
	Delete(min, max []float64, value interface{})
	Traverse(iter func(min, max []float64, height, level int,
		value interface{}) int)
	Count() int
	TotalOverlapArea() float64
	Nearby(min, max []float64, iter func(min, max []float64,
		item interface{}) bool)
}

RTree interface

Jump to

Keyboard shortcuts

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