[PostGIS] #3651: ST_Orientation crashes the backend

PostGIS trac at osgeo.org
Wed Apr 23 07:00:33 PDT 2025


#3651: ST_Orientation crashes the backend
--------------------------+----------------------------
  Reporter:  postgispaul  |      Owner:  robe
      Type:  defect       |     Status:  new
  Priority:  high         |  Milestone:  PostGIS SFCGAL
 Component:  sfcgal       |    Version:  2.3.x
Resolution:               |   Keywords:  windows
--------------------------+----------------------------
Comment (by robe):

 Replying to [comment:22 Loïc Bartoletti]:
 > What is the geometry tested?
 >
 > On a simple polygon, it seems ok:
 >
 >
 > {{{
 > gis=# SELECT CG_Orientation('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))');
 >  cg_orientation
 > ----------------
 >               1
 > (1 ligne)
 >
 > gis=# SELECT CG_Orientation(CG_ForceLHR('POLYGON((0 0, 0 1, 1 1, 1 0, 0
 0))'));
 >  cg_orientation
 > ----------------
 >              -1
 > (1 ligne)
 > }}}

 See the attached crash.zip file.  It's a pretty big polygon.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3651#comment:23>
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