Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 574 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 574 Bytes

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)