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

PostGIS trac at osgeo.org
Tue Feb 2 17:51:38 PST 2016


#3437: ST_Intersects incorrect for MultiPoints
-----------------------+---------------------------
  Reporter:  dbaston   |      Owner:  dbaston
      Type:  defect    |     Status:  new
  Priority:  critical  |  Milestone:  PostGIS 2.2.2
 Component:  postgis   |    Version:  2.2.x
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by dbaston):

 Since all access to PreparedGeometry is through a cache, I just modified
 the cache code to avoid generating a prepared geometry around a Point or a
 MultiPoint.  This feels like an odd place to make the fix, but it at least
 avoids littering the code with extra conditions every time we try to use a
 GEOSPrepared* function.  I guess this could be #ifdef'd out allow prepared
 geometry creation for certain GEOS versions, but I'm not sure which
 released versions both (a) actually invoke PreparedPoint::intersects
 through the C API and (b) provide correct results for both MultiPoints and
 Points.

 https://github.com/postgis/postgis/pull/87

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3437#comment:3>
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