You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed the result is wrong however it should not be the same as the result for Polygon. In Boost.Geometry the Box in non-cartesian cordinate systems is not Polygon, i.e. its edges aren't defined by great circles or geodesics. Instead, the edges of a Box are defined by meridians and parallels. E.g. in spherical equatorial the result should be area of a part of spherical frustum/segment (don't confuse with a Boost.Geometry Segment on the surface of a sphere defined by great circle).
Given the code (http://cpp.sh/43sl):
It gives the following output:
The problem is that boost::geometry calls the following code to calculate the are of the box:
Which as stated can't work in a spherical referential.
Even giving the strategy explicitely does not workaround the bug :)
Cheers,
The text was updated successfully, but these errors were encountered: