[PostGIS] #5749: Documentation bug: Wrong example in ST_IsSimple

PostGIS trac at osgeo.org
Thu Jun 20 06:17:15 PDT 2024


#5749: Documentation bug: Wrong example in ST_IsSimple
-----------------------+---------------------------
 Reporter:  lukaseder  |      Owner:  pramsey
     Type:  defect     |     Status:  new
 Priority:  medium     |  Milestone:  PostGIS 3.4.3
Component:  postgis    |    Version:  3.4.x
 Keywords:             |
-----------------------+---------------------------
 The first example in the documentation page for ST_IsSimple is wrong:
 https://postgis.net/docs/ST_IsSimple.html

 {{{
  SELECT ST_IsSimple(ST_GeomFromText('POLYGON((1 2, 3 4, 5 6, 1 2))'));
  st_issimple
 -------------
  t
 (1 row)
 }}}

 The result is false for this polygon as all the points are on one line.
 This would be a better example:

 {{{
 SELECT ST_IsSimple(ST_GeomFromText('POLYGON((0 0, 0 1, 1 1, 0 0))'));
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5749>
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