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 CompressTopoTimezones(input *pb.TopoTimezones) *pb.CompressedTopoTimezones
- func CompressWithPolyline(input *pb.Timezones) *pb.CompressedTimezones
- func CompressedPointsToPolylineBytes(points []*pb.Point) []byte
- func Decompress(input *pb.CompressedTimezones) (*pb.Timezones, error)
- func DecompressTopoTimezones(input *pb.CompressedTopoTimezones) *pb.TopoTimezones
- 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 DoTopologyAware(input *pb.Timezones, epsilon float64) *pb.Timezones
- func DoTopologyAwareWithStats(input *pb.Timezones, epsilon float64) (*pb.Timezones, topology.Stats)
- 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 CompressTopoTimezones ¶ added in v1.1.0
func CompressTopoTimezones(input *pb.TopoTimezones) *pb.CompressedTopoTimezones
CompressTopoTimezones converts a TopoTimezones into CompressedTopoTimezones by polyline-encoding all point sequences (shared edges and inline segments). Edge ID references (edge_forward / edge_reversed) are stored as-is.
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 DecompressTopoTimezones ¶ added in v1.1.0
func DecompressTopoTimezones(input *pb.CompressedTopoTimezones) *pb.TopoTimezones
DecompressTopoTimezones converts a CompressedTopoTimezones back to TopoTimezones by decoding all polyline-encoded point sequences.
func DecompressWithPolyline ¶ added in v0.8.0
func DecompressWithPolyline(input *pb.CompressedTimezones) *pb.Timezones
func DecompressedPolylineBytesToPoints ¶ added in v0.8.0
func DoTopologyAware ¶ added in v1.1.0
func DoTopologyAwareWithStats ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.