boostorg / boostorg/geometry

remove_spikes does not remove spike

Open
#603 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
517
Forks
232
PR merge metrics
No merged PRs in 30d

Description

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:

```C++
tc::geo::polygon 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.