|
Geometry : |
Subject: [geometry] closed wrt closedness?
From: Volker Schöch (vschoech_at_[hidden])
Date: 2012-02-16 10:45:22
Hi,
Pardon the pun... Looking at the example from my previous post, I noticed that the result of the asymmetric difference algorithm is a closed polygon although it should be the same type as the input (not closed).
A = MULTIPOLYGON(((1740 1056,2640 1326,3540 1776,3540 32767,1740 32767)))
B = MULTIPOLYGON(((1740 1794,2640 2280,3540 2352,3540 32767,1740 32767)))
A^B = MULTIPOLYGON(((1740 1794,1740 1056,2640 1326,3540 1776,3540 2352,2640 2280,1740 1794)))
I am using boost 1.48.0. My polygon type is oriented counter-clockwise and not closed.
Is this intentional/tolerable, or do you consider this a bug?
Regards
Volker
-- Volker Schöch | vschoech_at_[hidden] Senior Software Engineer think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091 Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306 Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl
Geometry list run by mateusz at loskot.net