Boost logo

Geometry :

Subject: [ggl] Difference / xor for multi polygons
From: Javier Gonzalez (xaviergonz)
Date: 2011-03-05 18:53:11


Ok, I have good news and bad news.
The good news is that such test case now works properly :)
The bad ones is that I found another faulty test case, this time with UNION.

Given an union of:
p1:
ext ring: -2, 2 2002, 2 2002, -2002 -2, -2002
int ring: 0, -147 0, -2000 2000, -2000 2000, 0 104, 0 440, -240
400, -280

p2:
ext ring: 359.99, -280 0, -182 0, -147 400.01, -280

the result is
ext ring: -2, 2 2002, 2 2002, -2002 -2, -2002
without int ring once more

And once more using the multipolygon version of the union even though the
inputs are single polygons (if that matters)

I hope I didn't make a typo, that's some amount of numbers...

On Thu, Mar 3, 2011 at 1:12 PM, Barend Gehrels <barend_at_[hidden]> wrote:

> Hi Javier,
>
> On 27-2-2011 19:57, Javier Gonzalez wrote:
>
>> Ok thanks, that worked.
>>
>> However now I'm facing another problem with the difference combination.
>>
>> (...)
>>
>> Isn't this obviously wrong?
>>
>
> Fixed now in the trunk version. I refactored the assemble phase, that was
> planned at some point anyway. This case and similar cases are included in
> the unit tests now.
>
> Thanks for the report. I'm curious to your test results.
>
>
> Regards, Barend
>
>
> --
> Barend Gehrels
> http://about.me/barendgehrels
>
> _______________________________________________
> ggl mailing list
> ggl_at_[hidden]
> http://lists.osgeo.org/mailman/listinfo/ggl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20110306/75701780/attachment.html


Geometry list run by mateusz at loskot.net