From: Kevin Neufeld Date: Wed, 27 Aug 2008 04:34:20 +0000 (+0000) Subject: moved ST_IsClosed to the new documentation template. X-Git-Tag: 1.4.0b1~772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2928cbd66a5267b6c2ad879dac8ee425eab0378;p=postgis moved ST_IsClosed to the new documentation template. git-svn-id: http://svn.osgeo.org/postgis/trunk@2931 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference.xml b/doc/reference.xml index 124f1f670..01d4f8e43 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -319,15 +319,6 @@ ST_Dimension - - ST_IsClosed(geometry) - - - Returns true of the geometry start and end points are - coincident. - - - ST_IsRing(geometry) @@ -2021,21 +2012,6 @@ WHERE n*100.00/length < 1; - - ST_IsClosed - - - Test if an ST_Curve or ST_MultiCurve value is closed. - - - SQL-MM defines the result of ST_IsClosed(NULL) to be 0, - while PostGIS returns NULL. - - - SQL-MM 3: 7.1.5, 9.3.3 - - - ST_IsEmpty @@ -2052,7 +2028,7 @@ WHERE n*100.00/length < 1; - + ST_IsRing @@ -2067,7 +2043,7 @@ WHERE n*100.00/length < 1; - + ST_IsSimple diff --git a/doc/reference_new.xml b/doc/reference_new.xml index 2318a1634..8bead3f4e 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -1876,6 +1876,95 @@ postgis=# SELECT ST_EndPoint('POINT(1 1)'::geometry) IS NULL AS is_null; + + + + ST_IsClosed + + Returns TRUE if the + LINESTRING's start and end points are coincident. + + + + + + + boolean ST_IsClosed + + geometry g + + + + + + Description + + Returns TRUE if the LINESTRING's + start and end points are coincident. + + + + + + This method implements the OpenGIS Simple Features + Implementation Specification for SQL. + + + + + + This method implements the SQL/MM specification: + SQL-MM 3: 7.1.5, 9.3.3 + + + SQL-MM defines the result of + ST_IsClosed(NULL) to be 0, while + PostGIS returns NULL. + + + + + Examples + + postgis=# SELECT ST_IsClosed('LINESTRING(0 0, 1 1)'::geometry); + st_isclosed +------------- + f +(1 row) + +postgis=# SELECT ST_IsClosed('LINESTRING(0 0, 0 1, 1 1, 0 0)'::geometry); + st_isclosed +------------- + t +(1 row) + +postgis=# SELECT ST_IsClosed('MULTILINESTRING((0 0, 0 1, 1 1, 0 0),(0 0, 1 1))'::geometry); + st_isclosed +------------- + f +(1 row) + +postgis=# SELECT ST_IsClosed('POINT(0 0)'::geometry); + st_isclosed +------------- + t +(1 row) + +postgis=# SELECT ST_IsClosed('MULTIPOINT((0 0), (1 1))'::geometry); + st_isclosed +------------- + t +(1 row) + + + + See Also + + + + + ST_NPoints