]> granicus.if.org Git - postgis/commitdiff
Document ST_isValidDetail(geom, flags) variant [RT-SIGTA]
authorSandro Santilli <strk@keybit.net>
Wed, 16 Feb 2011 08:34:08 +0000 (08:34 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 16 Feb 2011 08:34:08 +0000 (08:34 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6825 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_accessor.xml

index 606972872dcb7141b071517d49e154460728f532..fe159e8c91907a463645072ff49c1e017bbfe972 100644 (file)
@@ -1190,6 +1190,11 @@ SELECT ST_IsValidReason('LINESTRING(220227 150406,2220227 150407,222020 150410)'
                        <funcdef>valid_detail <function>ST_IsValidDetail</function></funcdef>
                        <paramdef><type>geometry </type> <parameter>geom</parameter></paramdef>
                  </funcprototype>
+                 <funcprototype>
+                       <funcdef>valid_detail <function>ST_IsValidDetail</function></funcdef>
+                       <paramdef><type>geometry </type> <parameter>geom</parameter></paramdef>
+                       <paramdef><type>integer </type> <parameter>flags</parameter></paramdef>
+                 </funcprototype>
                </funcsynopsis>
          </refsynopsisdiv>
 
@@ -1199,6 +1204,20 @@ SELECT ST_IsValidReason('LINESTRING(220227 150406,2220227 150407,222020 150410)'
                <para>Returns a valid_detail row, formed by a boolean (valid) stating if a geometry is valid, a varchar (reason) stating a reason why it is invalid and a geometry (location) pointing out where it is invalid.</para>
 
                <para>Useful to substitute and improve the combination of ST_IsValid and ST_IsValidReason to generate a detailed report of invalid geometries.</para>
+
+               <para>
+The 'flags' argument is a bitfield. It can have the following values:
+                       <itemizedlist>
+                               <listitem>
+<para>
+1: Consider self-intersecting rings forming holes as valid.
+   This is also know as "the ESRI flag".
+   Note that this is against the OGC model.
+</para>
+                               </listitem>
+                       </itemizedlist>
+               </para>
+
                <para>Availability: 2.0.0 - requires GEOS &gt;= 3.3.0.</para>
 
          </refsection>