simplifier

package module
v0.0.0-...-b78647b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2014 License: BSD-3-Clause Imports: 0 Imported by: 1

README

simplify-go

A Go port of simplify-js (https://github.com/mourner/simplify-js). Polyline simplification library by Vladimir Agafonkin, extracted from Leaflet.

Install

go get 'github.com/yrsh/simplify-go'

Running test

go test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePoints

func ComparePoints(p1, p2 []float64) bool

func CompareSlices

func CompareSlices(p1, p2 [][]float64) bool

-------------------------------

func GetTestData

func GetTestData() ([][]float64, [][]float64, [][]float64)

func Simplify

func Simplify(points [][]float64, tolerance float64, highestQuality bool) [][]float64

Types

type Stack

type Stack []int

-statck------------------------------------------------

func (*Stack) Pop

func (s *Stack) Pop() int

func (*Stack) Push

func (s *Stack) Push(v int)

Jump to

Keyboard shortcuts

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