From 7b1b5e0745110331502288ba7efbb9cc81bcdd6c Mon Sep 17 00:00:00 2001 From: Kevin Neufeld Date: Sat, 13 Sep 2008 05:41:33 +0000 Subject: [PATCH] Moved over ST_IsRing to new PostGIS reference. Fixed link errors to ST_IsSimple. git-svn-id: http://svn.osgeo.org/postgis/trunk@2962 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference.xml | 37 +++------------------ doc/reference_new.xml | 77 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 33 deletions(-) diff --git a/doc/reference.xml b/doc/reference.xml index c9f45e688..b6593cac3 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -241,7 +241,7 @@ - + ST_IsSimple(geometry) @@ -254,20 +254,6 @@ - - ST_IsRing(geometry) - - - Returns 1 (TRUE) if this Curve is closed (StartPoint ( ) = - EndPoint ( )) and this Curve is simple (does not pass through the - same point more than once). - - performed by GEOS - - OGC spec 2.1.5.1 - - - ST_NumGeometries(geometry) @@ -1263,7 +1249,7 @@ z' = z This method is a subcase of the 3D method any kind of geometry. Since simplification occurs on a object-by-object basis you can also feed a GeometryCollection to this function. Note that returned geometry might loose its - simplicity (see IsSimple) + simplicity (see ) @@ -1293,7 +1279,7 @@ z' = z This method is a subcase of the 3D method The returned geometry might loose its simplicity (see - IsSimple). + ). @@ -1894,22 +1880,7 @@ WHERE n*100.00/length < 1; - - ST_IsRing - - - Test if an ST_Curve value is a ring. - - - SQL-MM defines the result of ST_IsRing(NULL) to be 0, while - PostGIS returns NULL. - - - SQL-MM 3: 7.1.6 - - - - + ST_IsSimple diff --git a/doc/reference_new.xml b/doc/reference_new.xml index d7495cd8c..7cf201b5d 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -2213,6 +2213,83 @@ NOTICE: Self-intersection at or near point 0 0 + + + ST_IsRing + + Returns TRUE if this + LINESTRING is both closed and simple. + + + + + + boolean ST_IsRing + + geometry g + + + + + + Description + + Returns TRUE if this + LINESTRING is both + (ST_StartPoint(g) + ~= + ST_Endpoint(g)) and (does not self intersect). + + + + + + This method implements the OpenGIS Simple Features + Implementation Specification for SQL. OGC SFSQL 1.1 - + 2.1.5.1 + + + + + + This method implements the SQL/MM specification: + SQL-MM 3: 7.1.6 + + + SQL-MM defines the result of + ST_IsRing(NULL) to be 0, while + PostGIS returns NULL. + + + + + Examples + + SELECT ST_IsRing(the_geom), ST_IsClosed(the_geom), ST_IsSimple(the_geom) +FROM (SELECT 'LINESTRING(0 0, 0 1, 1 1, 1 0, 0 0)'::geometry AS the_geom) AS foo; + st_isring | st_isclosed | st_issimple +-----------+-------------+------------- + t | t | t +(1 row) + +SELECT ST_IsRing(the_geom), ST_IsClosed(the_geom), ST_IsSimple(the_geom) +FROM (SELECT 'LINESTRING(0 0, 0 1, 1 0, 1 1, 0 0)'::geometry AS the_geom) AS foo; + st_isring | st_isclosed | st_issimple +-----------+-------------+------------- + f | t | f +(1 row) + + + + See Also + + , , , + + + + ST_SRID -- 2.50.1