reduce

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 6 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.Timezones, method pb.CompressMethod) (*pb.CompressedTimezones, error)

func CompressWithPolyline

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

func CompressedPointsToPolylineBytes

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

func Decompress

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

func DecompressWithPolyline

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

func DecompressedPolylineBytesToPoints

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

func Do

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

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