package
0.11.1
Repository: https://github.com/paulmach/orb.git
Documentation: pkg.go.dev

# README

orb/resample Godoc Reference

Package resample has a couple functions for resampling line geometry into more or less evenly spaces points.

func Resample(ls orb.LineString, df orb.DistanceFunc, totalPoints int) orb.LineString
func ToInterval(ls orb.LineString, df orb.DistanceFunc, dist float64) orb.LineString

For example, resampling a line string so the points are 1 planar unit apart:

ls := resample.ToInterval(ls, planar.Distance, 1.0)

# Functions

Resample converts the line string into totalPoints-1 evenly spaced segments.
ToInterval coverts the line string into evenly spaced points of about the given distance.