[postgis-tickets] [PostGIS] #2431: Regression failure from 2.0.3-2.1.0 ST_Distance

PostGIS trac at osgeo.org
Wed Aug 14 14:51:46 PDT 2013


#2431: Regression failure from 2.0.3-2.1.0 ST_Distance
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.0
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 Going thru all the differences  in garden tests 2.0.3 against 2.1.0 branch

 In 2.0.3 this worked and gave an answer of 40.02 (I believed it just
 considered the 2D) - ST_3DDistance still works in 2.1 for this
 {{{
 SELECT ST_Distance('MULTILINESTRING Z ((-10 40 1.5,-9 41 1.5),(10 40
 1.5,11 41 1.5),(30 40 1.5,31 41 1.5),(50 40 1.5,51 41 1.5),(-9 41 1.5,-8
 42 2),(11 41 1.5,12 42 2),(31 41 1.5,32 42 2),(51 41 1.5,52 42 2),(-10 65
 1.5,-9 66 1.5),(10 65 1.5,11 66 1.5),(30 65 1.5,31 66 1.5),(50 65 1.5,51
 66 1.5),(-9 66 1.5,-8 67 2),(11 66 1.5,12 67 2),(31 66 1.5,32 67 2),(51 66
 1.5,52 67 2))'::Geometry, 'PolyhedralSurface z(
 ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),
 ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)) )'::geometry)
 }}}

 running same query in 2.1.0 gives error:

 ERROR:  Unsupported geometry type: PolyhedralSurface


 Using ST_3DDistance in both 2.0.3 and 2.1.0 yields 40.053


 I believe we said ST_Distance will give a 2D answer but will work for all
 3D geoms (except TINS)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2431>
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