twpayne / go-geom

Package geom implements efficient geometry types for geospatial applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add Invert function in xy package

jackielii opened this issue · comments

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.

Makes sense, but I'd call the function Reverse. It should be a method on geom1 (LineStrings and LinearRings).

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

Yes, please do.

Closing due to inactivity.