[postgis-tickets] [PostGIS] #4096: ST_Intersects does not return error when comparing different SRIDs

PostGIS trac at osgeo.org
Thu May 24 07:37:54 PDT 2018


#4096: ST_Intersects does not return error when comparing different SRIDs
----------------------+---------------------------
  Reporter:  katbot   |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  low      |  Milestone:  PostGIS 2.4.5
 Component:  postgis  |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by komzpa):

 This happens due to following optimization:
 ST_Intersects is in fact replaced to calls to && and _ST_Intersects. && is
 fast indexed operator that works on boxes and does not check srid, as
 boxes don't have one. _ST_Intersects performs the check, but is never
 called if boxes don't intersect.

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