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