[postgis-tickets] [PostGIS] #3437: ST_Intersects incorrect for MultiPoints

PostGIS trac at osgeo.org
Wed Jan 20 04:08:41 PST 2016


#3437: ST_Intersects incorrect for MultiPoints
----------------------+---------------------------
 Reporter:  dbaston   |      Owner:  pramsey
     Type:  defect    |     Status:  new
 Priority:  critical  |  Milestone:  PostGIS 2.2.2
Component:  postgis   |    Version:  2.2.x
 Keywords:            |
----------------------+---------------------------
 Same root cause as #3433; the problem occurs when prepared geometry use
 kicks in.  Example case:

 {{{
 WITH
 a AS (SELECT ST_Collect(ST_MakePoint(random(), random())) as geom from
 generate_series(1, 10)),
 b AS (SELECT (ST_Dump(geom)).geom FROM a)
 SELECT count(*) FROM b INNER JOIN a ON ST_Intersects(a.geom, b.geom);
 }}}

 This should return 10 rows but only returns one.  Seems to return the
 expected result for GEOS < 3.5, perhaps because PreparedPoint
 implementation isn't actually invoked.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3437>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list