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

PostGIS trac at osgeo.org
Fri Dec 11 17:59:39 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 dbaston):

 I get 127516467322130 for all three polygons if I make a small tweak in
 lwgeodetic.c, line 919:
 {{{
 double sphere_distance_cartesian(const POINT3D *s, const POINT3D *e)
 {
         return acos(FP_MIN(1.0, dot_product(s, e)));
 }
 }}}

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