#764 closed defect (fixed)
PreparedPoint::intersects gives incorrect results for MultiPoint
Reported by: | dbaston | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.6.1 |
Component: | Default | Version: | 3.4.2 |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
It seems that if a PreparedPoint is build from a MultiPoint, intersects() will return false for any point, for two independent reasons.
a) PreparedPoint::intersects short-circuits to an equality test. It looks like this was introduced at r4081 / r4132.
b) the isAnyTargetComponentInTest method does its work using a PointLocator, which seems to have no implementation for a Point.
Change History (10)
comment:1 by , 8 years ago
comment:3 by , 8 years ago
(In [4149]) Fix incorrect return from PreparedPoint::intersects
Includes unit test
Patch by Daniel Baston via https://github.com/libgeos/libgeos/pull/60
comment:4 by , 8 years ago
Milestone: | 3.5.1 → 3.4.3 |
---|---|
Version: | 3.5.0 → 3.4.2 |
r4132 if from 3.4 branch, will need to be backported back to that version
comment:5 by , 8 years ago
(In [4150]) Fix incorrect return from PreparedPoint::intersects
Includes unit test
Patch by Daniel Baston via https://github.com/libgeos/libgeos/pull/60
comment:6 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [4151]) Fix incorrect return from PreparedPoint::intersects
Includes unit test
Patch by Daniel Baston via https://github.com/libgeos/libgeos/pull/60
See also: https://trac.osgeo.org/postgis/ticket/3433