Closed GoogleCodeExporter closed 9 years ago
Not sure whether this is 100% correct but this fixes the problem (for me):
https://bitbucket.org/mayastudios_3rdparty/nts-src/changeset/9958462c46cf632d14d
62d99b5cd7c553c8e773f
Original comment by goo...@mail.manski.net
on 21 Aug 2012 at 12:26
can you help me replicate the bug? This test looks ok (doesn't generate errors)
with current trunk)
Original comment by diegogu...@gmail.com
on 22 Aug 2012 at 8:07
Attachments:
Hi Diego!
I am experiencing (exactly?) the same problem, "g0_Int" and "g1Int" both
becomes empty as the OP describes.
But I'm not sure I like the OP's solution. My polygon sets are bigger, but I
have the data at hand (Shape) for testing if necessary.
I have tried to union each polygon in my data set with each of the others and
that didn't cause any problems. So the problem seems to be in a derived set of
my polygons.
I'm using version 1.12.0, revision I don't know.
Regards, Casper
Original comment by emailtoc...@gmail.com
on 28 Sep 2012 at 11:23
@caspar: Could you setup a testcase and provide your ShapeFile?
Original comment by felix.ob...@netcologne.de
on 28 Sep 2012 at 11:33
I can confirm that it is a problem if both g0int and g0int become empty
GeometryCollections. I can even imagine that this could happen, but
unfortunatly I cannot reproduce this situation with the geometries provided
above by OP.
Anyhow, the result of g0.Union(g1) is null in this case, and therefore we have
no factory at hand to create an empty polygon.
I'd suggest:
- remove static keywords from both UnionActual and RestrictToPolygons functions
- use _geomFactory for creation of result geometry, instead of g.Factory
Un
Original comment by felix.ob...@netcologne.de
on 28 Sep 2012 at 9:53
Fixed as of r916
Original comment by felix.ob...@netcologne.de
on 1 Oct 2012 at 12:19
Original issue reported on code.google.com by
goo...@mail.manski.net
on 16 Aug 2012 at 8:05