add Invert function in xy package
jackielii opened this issue · comments
Jackie Li commented
A Invert
function can enable the linear ring to transform from CCW to CW and vise versa, which is makes construct a proper polygon easier.
Tom Payne commented
Makes sense, but I'd call the function Reverse
. It should be a method on geom1
(LineStrings and LinearRings).
Jackie Li commented
I was borrowing from https://godoc.org/github.com/golang/geo/s2#Loop.Invert
I will probably implement it in the next few days. Will submit a PR if you don't mind
Tom Payne commented
Yes, please do.
Tom Payne commented
Closing due to inactivity.