Closed edzer closed 7 years ago
Fair point; I'll switch to non-cartesian assumptions.
This is fixed for now, in the sense that it contains a caveat and note - in the long-term it'd be great to use spherical points and have it controllable by the user, but the actual boost centroid code seems to find spherical-point-based objects obnoxious. So, resolved as Good Enough but I'm gonna try and dig down into why Boost is complaining for funsies at some point.
a long/lat triangle centred around the pole gives
The result suggests that wicket assumes long/lat data, but if this is the case, the answer is wrong (should be
lat 90 lon 0
(or any other lon). Cartesian coordinates were hard coded here.As a comparison,
sf
gives you the same centroid but at least with a warning: