Opened 14 years ago

Closed 14 years ago

#677 closed defect (fixed)

ST_Distance_Spheroid is kinda broken

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

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

      

Change History (1)

comment:1 by pramsey, 14 years ago

Resolution: fixed
Status: newclosed

Fixed at r6516

Note: See TracTickets for help on using tickets.