Opened 7 days ago

Closed 10 hours ago

#5749 closed defect (fixed)

Documentation bug: Wrong example in ST_IsSimple

Reported by: lukaseder Owned by: robe
Priority: medium Milestone: PostGIS 3.4.3
Component: documentation Version: 3.4.x
Keywords: Cc:

Description

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))'));

Change History (3)

comment:1 by robe, 10 hours ago

Component: postgisdocumentation
Owner: changed from pramsey to robe

comment:2 by Regina Obe <lr@…>, 10 hours ago

In 5795ded/git:

Correction in ST_IsSimple doco from Lukaeder
References #5749 for PostGIS 3.5.0

comment:3 by Regina Obe <lr@…>, 10 hours ago

Resolution: fixed
Status: newclosed

In 682776d3/git:

Correction in ST_IsSimple doco from lukaseder
Closes #5749 for PostGIS 3.4.3

Note: See TracTickets for help on using tickets.