Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#2642 closed defect (duplicate)

geography allows comparing geographies with different spheroids

Reported by: robe Owned by: pramsey
Priority: low Milestone: PostGIS 2.2.0
Component: postgis Version: 2.1.x
Keywords: Cc:

Description

I'm guess you are just taking the first spheroid. Something like this I feel should be illegal.

SELECT ST_Distance('SRID=4326;POINT(-71.070168 42.370024)'::geography, 'SRID=4267;POINT(-71.080168 42.370024)'::geography);

823.690428176

Just as this is illegal

SELECT ST_Distance('SRID=4326;POINT(-71.070168 42.370024)'::geometry, 'SRID=4267;POINT(-71.080168 42.370024)'::geometry);

ERROR:  Operation on two GEOMETRIES with different SRIDs

Unless you are doing some voodoo behind the scenes to change the spheroid of one.

Change History (4)

comment:1 by robe, 10 years ago

Summary: geography allows inputting geographies with different spheroidsgeography allows comparing geographies with different spheroids

comment:2 by robe, 10 years ago

Priority: mediumlow

comment:3 by pramsey, 9 years ago

Resolution: duplicate
Status: newclosed

Duplicates #3202

comment:4 by pramsey, 9 years ago

Fixed in r13826

Note: See TracTickets for help on using tickets.