Boost logo

Geometry :

Subject: [ggl] 'area' and 'within' implementations for spherical earth?
From: Thomas Rowe (thomas_rowe)
Date: 2011-07-12 03:38:25

> within works with in the cs::spherical_equatorial

Ahh, I missed that. Yes within appears to work fine.

However, I am having a confusing result using 'area' with
spherical_equatorial. Porting roughly the polygon_example to use
spherical_equatorial, I find adding an inner_ring to a polygon
*increases* the area of the original polygon by the area of the inner
ring. Please see attached.

Is this a bug? Or do I misunderstand the "interior ring" concept?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 1545 bytes
Desc: not available
Url :

Geometry list run by mateusz at