Ticket #677 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

ST_Distance_Spheroid is kinda broken

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
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

Changed 2 years ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

Fixed at r6516

Note: See TracTickets for help on using tickets.