Opened 6 years ago

Last modified 6 years ago

#12294 new Bugs

boost::geometry::union_ empty result

Reported by: phelippeneveu@… Owned by: Barend Gehrels
Milestone: To Be Determined Component: geometry
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

union_() sometimes return an empty result. It seems like there is a bug with union_() if some vertices are too close to each other. I inspected the polygons and they seem to be valid (no self intersections). I created a SHP file and WTK file with a few problematic polygons. The polygons are in pairs, and if you call union_() on each pair, the result will be empty.

Attachments (3)

union.wkt (26.5 KB ) - added by phelippeneveu@… 6 years ago.
union pair polygons in WKT format
union.shp (28.3 KB ) - added by phelippeneveu@… 6 years ago.
union pair polygons in SHP format
union.shx (388 bytes ) - added by phelippeneveu@… 6 years ago.
union pair polygons in SHX format

Download all attachments as: .zip

Change History (4)

by phelippeneveu@…, 6 years ago

Attachment: union.wkt added

union pair polygons in WKT format

by phelippeneveu@…, 6 years ago

Attachment: union.shp added

union pair polygons in SHP format

by phelippeneveu@…, 6 years ago

Attachment: union.shx added

union pair polygons in SHX format

comment:1 by phelippeneveu@…, 6 years ago

I forgot to mention that I did my testing using version 1.61.0.

Note: See TracTickets for help on using tickets.