Closed sckott closed 7 years ago
2D or 3D centroid?
Also at this point on a practical basis the hours have hit their limit, so I guess this would go into the ongoing-maintenance-and-new-features contract?
yeah, onto the new contract if all hrs up on 1st.
just 2D
Do you want universal support or just polygon support?
universal if doable, for 2D that is
Should now be testable as get_centroid
(although I need to write tests)
Seems to work so far for polygons - does it only support POLYGON
right now?
Right now, yes, but I can widen it out to the other supported types trivially (obviously GCs are...harder to do, but everything else..)
thanks, skipping GC seems good to me
Test now?
working on it
works good AFAICT
http://www.boost.org/doc/libs/1_47_0/libs/geometry/doc/html/geometry/reference/algorithms/centroid/centroid_2.html
another issue is i sometimes need to calculate centroid for WKT, doing this now with a Turf JS module https://github.com/ropensci/spocc/blob/master/inst/js/turf-centroid.js - but if can be added here easily, then ....