geometry icon indicating copy to clipboard operation
geometry copied to clipboard

remove_spikes does not remove spike

Open vschoech opened this issue 6 years ago • 8 comments

My "tc::geo::polygon" type is actually a multi-polygon, using a polygon type that is based on int, oriented counter-clockwise and open (not closed). I am using boost 1.70.0. Please consider the following example:

tc::geo::polygon<int> polygon_;
boost::geometry::read_wkt("MULTIPOLYGON(((4287 2160,5984 2160,4287 2160)))", polygon_);
boost::geometry::remove_spikes(polygon_);
boost::geometry::is_empty(polygon_); // **** returns false! ****

As far as I can tell from our discussions, the correct result would be the empty multi-polygon. Here is the summary of my understanding of this issue: http://lists.boost.org/geometry/2014/11/3237.php

See also: https://svn.boost.org/trac10/ticket/9871

vschoech avatar Jun 21 '19 09:06 vschoech

As of boost 1.72.0, this problem is still present as reported!

vschoech avatar Mar 09 '20 10:03 vschoech

As of boost 1.73.0, this problem is still present as reported!

vschoech avatar Jun 17 '20 10:06 vschoech

Confirming that this issue is still present in boost 1.75.0. Looking forward to the next milestone!

vschoech avatar Mar 26 '21 17:03 vschoech

Confirming that this issue is still present in boost 1.79.0. Looking forward to the next milestone!

vschoech avatar Jul 08 '22 11:07 vschoech

I too confirm that it is still present in boost 1.79.0.

image

Vishnu-C avatar Sep 21 '22 06:09 Vishnu-C

Any news regarding this issue? @barendgehrels

vschoech avatar Aug 15 '23 15:08 vschoech

:warning: Still reproducible in the same way in boost 1.83.0.

vschoech avatar Aug 28 '23 13:08 vschoech