[postgis-devel] [PostGIS] #2039: ST_Area(geography) returning wrong answer
PostGIS
trac at osgeo.org
Thu Oct 11 15:35:39 PDT 2012
#2039: ST_Area(geography) returning wrong answer
---------------------+------------------------------------------------------
Reporter: pramsey | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: postgis | Version: 2.0.x
Keywords: |
---------------------+------------------------------------------------------
Reported in the mailing list
{{{
WITH shapes as (
select 1 as rownum,
ST_GeogFromText('POLYGON((-144 -63,-144 -54,-126 -54,-126 -63,-144
-63))') as shape
union
select 2 as rownum,
ST_GeogFromText('POLYGON((-90 -63,-90 -54,-72 -54,-72 -63,-90 -63))')
as shape
)
select
rownum,
ST_Area(shape) as spheroid,
ST_Area(shape, false) as sphere,
ST_Area(shape) - ST_Area(shape, false) as delta
from shapes;
}}}
The meridian crossing code of the current implementation is tripping.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2039>
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