[postgis-devel] [PostGIS] #677: ST_Distance_Spheroid is kinda broken

PostGIS trac at osgeo.org
Thu Dec 2 11:43:17 PST 2010


#677: ST_Distance_Spheroid is kinda broken
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 This works in PostGIS 1.5 well at least returns answer of:
 1121394.75611079

 Whether that is right I'm not smart enough to know:
 {{{
 SELECT ST_Distance_Spheroid(ST_GeomFromEWKT('MULTIPOLYGON(((-10 40,-10
 55,-10 70,5 40,-10 40)))'),
 ST_GeomFromEWKT('MULTIPOINT(20 40,20 55,20 70,35 40,35 55,35 70,50 40,50
 55,50 70)'), 'SPHEROID["GRS_1980",6378137,298.257222101]') As result;
 }}}


 In 2.0 it gives error:

 {{{
 ERROR:  gbox_overlaps: geometries have mismatched dimensionality
 }}}


 {{{

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/677>
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-devel mailing list