#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 , 11 years ago
Summary: | geography allows inputting geographies with different spheroids → geography allows comparing geographies with different spheroids |
---|
comment:2 by , 11 years ago
Priority: | medium → low |
---|
comment:3 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicates #3202