geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Union strategies

Open ghost opened this issue 7 years ago • 2 comments

Hello,

I want to merge two polygon that should have one or several segment in common (or at least they should be very near). But they will never completely overlap. I tried union_ with the default strategy without any success, and didn't find anything about Union_ Strategy Concept. So I'm wondering how I should do that? If it's possible.

Thanks

ghost avatar Apr 21 '18 17:04 ghost

Hi,

Union should merge them unless they were close but not overlapping, then both polygons should be in the output. Could you share the case which doesn't work for you? Have in mind that the orientation and closure of Polygons has to be correct (so the input has to be valid) and that the the output of union_() has to be MultiPolygon.

awulkiew avatar Apr 22 '18 19:04 awulkiew

Sorry it's a bit hard to answer these days. So I wanted to show you the values, and them I tried again with a small test. And it was working... I just realized that given the .data() of a std::vector<point_2d> to assign_points wasn't a good idea... Anyway that doesn't answer my real question which is : is there any Union Strategy to apply a radius about if the polygon overlap or not? Where I can find the documentation about Union Strategies?

ghost avatar Apr 25 '18 20:04 ghost