Bug #46498 | Intersection of polygon and multipolygon does not return all intersected geoms | ||
---|---|---|---|
Submitted: | 31 Jul 2009 16:27 | Modified: | 7 Aug 2012 12:21 |
Reporter: | John Powell | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S2 (Serious) |
Version: | mysql-5.1-wl1326 | OS: | Linux (centos 64-bit 5.2) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | intersection, multipolygon |
[31 Jul 2009 16:27]
John Powell
[31 Jul 2009 16:30]
John Powell
geometry for bug 46498
Attachment: geom.zip (application/x-zip-compressed, text), 334.56 KiB.
[31 Jul 2009 20:21]
MySQL Verification Team
Thank you for the bug report. mysql> select intersects(@bbox,geometryn(@geom,1)); +--------------------------------------+ | intersects(@bbox,geometryn(@geom,1)) | +--------------------------------------+ | 1 | +--------------------------------------+ 1 row in set (0.17 sec) mysql>
[5 Dec 2009 15:07]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/92967 2664 Alexey Botchkov 2009-12-04 Bug#46372 buffer of linestring returns multipolygon in certain cases there was a mistake in handling of 'holes' in the polygons. Fixed by adding the 'first_poly_node' pointer to the res_point structure to point to the first point of the surrounding polygon. Also a set of debugging functions was added. It doesn't affect the working fucntions, but greatly simplifies the debugging. This path fixes also bug#46498 and bug#45883 also. per-file comments: sql/gcalc_slicescan.cc Bug#46372 buffer of linestring returns multipolygon in certain cases sql/gcalc_slicescan.h Bug#46372 buffer of linestring returns multipolygon in certain cases sql/gcalc_tools.cc Bug#46372 buffer of linestring returns multipolygon in certain cases sql/gcalc_tools.h Bug#46372 buffer of linestring returns multipolygon in certain cases sql/item_geofunc.cc Bug#46372 buffer of linestring returns multipolygon in certain cases sql/spatial.cc Bug#46372 buffer of linestring returns multipolygon in certain cases
[6 Dec 2009 9:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/92991 2664 Alexey Botchkov 2009-12-05 Bug #46386 Intersection() and Difference() make the server disconnect there was a mistake in handling of 'holes' in the polygons. Fixed by adding the 'first_poly_node' pointer to the res_point structure to point to the first point of the surrounding polygon. Also a set of debugging functions was added. It doesn't affect the working fucntions, but greatly simplifies the debugging. This path fixes also bug#46498. per-file comments: sql/gcalc_slicescan.cc Bug #46386 Intersection() and Difference() make the server disconnect sql/gcalc_slicescan.h Bug #46386 Intersection() and Difference() make the server disconnect sql/gcalc_tools.cc Bug #46386 Intersection() and Difference() make the server disconnect sql/gcalc_tools.h Bug #46386 Intersection() and Difference() make the server disconnect sql/item_geofunc.cc Bug #46386 Intersection() and Difference() make the server disconnect sql/spatial.cc Bug #46386 Intersection() and Difference() make the server disconnect
[7 Aug 2012 12:21]
Alexander Barkov
This bug was earlier fixed in mysql-gis tree (before mysql-5.6 release).