Changes between Initial Version and Version 1 of Ticket #253
- Timestamp:
- May 19, 2009, 9:18:20 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #253 – Description
initial v1 2 2 3 3 I'm very new to GEOS (< 1 day), but I'm puzzled by what I think is a strange bug. 4 4 5 Being particularly interested in the GEOSUnionCascaded() function to merge large sets (>50,000) of overlapping polygons, altering my dataset manually to avoid this bug(?) is not an option. 5 6 6 7 I have narrowed down the problem to the following multipolygon, which represents a rectangle inside an octagon (see http://homes.esat.kuleuven.be/~wvereeck/rect_inside_oct.png) 7 8 9 {{{ 8 10 MULTIPOLYGON(((12.26 18.46, 11.76 18.46, 11.54 18.24, 11.54 17.34, 11.76 17.12, 12.26 17.12, 12.48 17.34, 12.48 18.24, 12.26 18.46)),((12.37 18.35, 11.65 18.35, 11.65 17.23, 12.37 17.23, 12.37 18.35))) 11 }}} 9 12 10 13 I am using the c-interface. Running the GEOSisValid() test on this polygon set results in: 14 15 {{{ 11 16 NOTICE: Self-intersection at or near point 12.37 18.35 17 }}} 18 12 19 Also, GEOSUnionCascaded() accordingly fails with: 13 ERROR: TopologyException: found non-noded intersection between 11.65 etc... 20 21 {{{ 22 ERROR: TopologyException: found non-noded intersection between 11.65 23 }}} 24 25 etc. 14 26 15 27 However, when I slightly offset the x-position (+1e-8) of the two top vertices of the rectangle, everything works like a charm (i.e. GEOSisValid returns 'true' and GEOSUnionCascaded produces the correct output polygon): 16 28 29 {{{ 17 30 MULTIPOLYGON(((12.26 18.46, 11.76 18.46, 11.54 18.24, 11.54 17.34, 11.76 17.12, 12.26 17.12, 12.48 17.34, 12.48 18.24, 12.26 18.46)), ((12.37000001 18.35, 11.65000001 18.35, 11.65 17.23, 12.37 17.23, 12.37000001 18.35))) 31 }}} 18 32 19 33 I apologize if I'm too much in a hurry here and should start to learn more about geos before submitting a complaint :) At least I hope this is the right place for this problem. … … 23 37 24 38 FWIW, I'm using geos-3.1.0.tar.bz2 (2009/03/17), libgeos-3.1.0 and Ubuntu 8.04.2 (x86-64) with a 2.6.24-23-generic kernel. 25