[postgis-tickets] [PostGIS] #3393: ST_Area NaN on some polygons

PostGIS trac at osgeo.org
Fri Dec 11 09:21:01 PST 2015


#3393: ST_Area NaN on some polygons
----------------------+---------------------------
  Reporter:  rfc2616  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.2.1
 Component:  postgis  |    Version:  2.2.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by pramsey):

 Any reason you're calculating on the sphere in particular? (Not that it
 matters, the old version would be sphere only anyways, probably.) The
 results even when you don't get NaN are pretty bad, even back when using
 postgis 2.0, for example:
 {{{
 select ST_Area('POLYGON((0 78.703946026662,0 0,179.999997913235
  0,179.999997913235 -33.0888306884702,0
  78.703946026662))'::geography,false);
      st_area
 -----------------
  127430010458336
 }}}
 I'd expect changes from 2.1 to 2.2, as we changed to new spherical area
 code. I'm surprised to see changes from 2.0 to 2.1, but I see that also.
 Anyways, I'm not sure the answers are right, even when you get non-NaN
 answers. Will have to confirm that.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3393#comment:1>
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-tickets mailing list