[postgis-tickets] [PostGIS] #3256: ST_3DDistance sfcgal garden crash on malformed polygons

PostGIS trac at osgeo.org
Fri Aug 28 13:45:00 PDT 2015


#3256: ST_3DDistance sfcgal garden crash on malformed polygons
---------------------+----------------------------
  Reporter:  robe    |      Owner:  colivier
      Type:  defect  |     Status:  closed
  Priority:  high    |  Milestone:  PostGIS SFCGAL
 Component:  sfcgal  |    Version:  trunk
Resolution:  fixed   |   Keywords:
---------------------+----------------------------
Changes (by robe):

 * status:  new => closed
 * resolution:   => fixed
 * milestone:  PostGIS 2.2.0 => PostGIS SFCGAL


Comment:

 confirmed it's fixed as of
 https://github.com/Oslandia/SFCGAL/commit/24db3b8a2aec64db6da32b1cc6bf4d4a3840b9f8

 I now get


 {{{
 NOTICE:  During distance_3d(A,B) :
 NOTICE:    with A: POINT(-6254999476204023/562949953421312 40/1)
 NOTICE:     and B: POLYGON((1/1 2/1,1/1 2/1,1/1 2/1,1/1 2/1))


 ERROR:  When converting to 3D - Polygon is invalid : ring 0 degenerated to
 a point : POLYGON((1/1 2/1 0/1,1/1 2/1 0/1,1/1 2/1 0/1,1/1 2/1 0/1))
 ********** Error **********

 ERROR: When converting to 3D - Polygon is invalid : ring 0 degenerated to
 a point : POLYGON((1/1 2/1 0/1,1/1 2/1 0/1,1/1 2/1 0/1,1/1 2/1 0/1))
 SQL state: XX000


 }}}

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