[postgis-tickets] [PostGIS] #3255: Garden crash SFCGAL ST_3DDifference with malformed polygons

PostGIS trac at osgeo.org
Thu Sep 27 00:46:07 PDT 2018


#3255: Garden crash SFCGAL ST_3DDifference with malformed polygons
---------------------+----------------------------
  Reporter:  robe    |      Owner:  colivier
      Type:  defect  |     Status:  new
  Priority:  high    |  Milestone:  PostGIS SFCGAL
 Component:  sfcgal  |    Version:  trunk
Resolution:          |   Keywords:
---------------------+----------------------------

Comment (by hmercier):

 Works as expected (returns an error) on a recent version:


 {{{POSTGIS="3.0.0dev r16844" [EXTENSION] PGSQL="100"
 GEOS="3.6.2-CAPI-1.10.2 4d2925d6" SFCGAL="1.3.5" PROJ="Rel. 5.1.0, June
 1st, 2018" LIBXML="2.9.4" LIBJSON="0.12.1"}}}

 {{{
 test_sfcgal=# SELECT ST_3DDifference('POINT(-11.1111111 40)'::geometry,
 'POLYGON((1 2,1 2,1 2,1 2))'::geometry) As result;
 NOTICE:  During difference_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))
 ERREUR:  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))
 }}}

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