Modify

Opened 2 years ago

Last modified 2 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@… 2 years ago.
union pair polygons in WKT format
union.shp (28.3 KB) - added by phelippeneveu@… 2 years ago.
union pair polygons in SHP format
union.shx (388 bytes) - added by phelippeneveu@… 2 years ago.
union pair polygons in SHX format

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by phelippeneveu@…

Attachment: union.wkt added

union pair polygons in WKT format

Changed 2 years ago by phelippeneveu@…

Attachment: union.shp added

union pair polygons in SHP format

Changed 2 years ago by phelippeneveu@…

Attachment: union.shx added

union pair polygons in SHX format

comment:1 Changed 2 years ago by phelippeneveu@…

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Barend Gehrels.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.