Documentation ¶
Overview ¶
Package reduce could reduce Polygon size both polygon lines and float precise.
Index ¶
- func Compress(input *pb.Timezones, method pb.CompressMethod) (*pb.CompressedTimezones, error)
- func CompressWithPolyline(input *pb.Timezones) *pb.CompressedTimezones
- func CompressedPointsToPolylineBytes(points []*pb.Point) []byte
- func Decompress(input *pb.CompressedTimezones) (*pb.Timezones, error)
- func DecompressWithPolyline(input *pb.CompressedTimezones) *pb.Timezones
- func DecompressedPolylineBytesToPoints(input []byte) []*pb.Point
- func Do(input *pb.Timezones, skip int, precise float64, minist float64) *pb.Timezones
- func ReducePoints(points []*pb.Point) []*pb.Point
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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.