reduce

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 5 Imported by: 1

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 added in v0.8.0

func Compress(input *pb.Timezones, method pb.CompressMethod) (*pb.CompressedTimezones, error)

func CompressWithPolyline added in v0.8.0

func CompressWithPolyline(input *pb.Timezones) *pb.CompressedTimezones

func CompressedPointsToPolylineBytes added in v0.8.0

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

func Decompress added in v0.8.0

func Decompress(input *pb.CompressedTimezones) (*pb.Timezones, error)

func DecompressWithPolyline added in v0.8.0

func DecompressWithPolyline(input *pb.CompressedTimezones) *pb.Timezones

func DecompressedPolylineBytesToPoints added in v0.8.0

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

func Do

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

func ReducePoints added in v0.7.0

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