reduce

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package reduce could reduce Polygon size both polygon lines and float precise.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(input *pb.Locations, method pb.CompressMethod) (*pb.CompressedLocations, error)

func CompressWithPolyline

func CompressWithPolyline(input *pb.Locations) *pb.CompressedLocations

func CompressedPointsToPolylineBytes

func CompressedPointsToPolylineBytes(points []*pb.Point) []byte

func Decompress

func Decompress(input *pb.CompressedLocations) (*pb.Locations, error)

func DecompressWithPolyline

func DecompressWithPolyline(input *pb.CompressedLocations) *pb.Locations

func DecompressedPolylineBytesToPoints

func DecompressedPolylineBytesToPoints(input []byte) []*pb.Point

func Do

func Do(input *pb.Locations, skip int, precise float64, minist float64) *pb.Locations

func ReducePoints

func ReducePoints(points []*pb.Point) []*pb.Point

Types

This section is empty.

Jump to

Keyboard shortcuts

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