[postgis-tickets] [PostGIS] #5376: ST_Intersection returns EMPTY when mixing 2D and 3D geometries

PostGIS trac at osgeo.org
Fri Apr 28 09:19:54 PDT 2023


#5376: ST_Intersection returns EMPTY when mixing 2D and 3D geometries
-----------------------+---------------------------
  Reporter:  ezimanyi  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.3.3
 Component:  postgis   |    Version:  3.3.x
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by pramsey):

 It's not the mixed dimensions, it's the fact that your linestring has zero
 length. Now it's arguable whether or not the answer should be 'POINT(3 1)'
 but that's a question for GEOS.
 {{{
 select st_astext(st_intersection(
    'LINESTRING(3 1, 3 1)',
    'POLYGON((2 0, 2 2, 4 2, 4 0, 2 0))'));

  LINESTRING EMPTY
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5376#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