mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 09:32:46 +00:00
97cbf8d39f
git-svn-id: http://svn.osgeo.org/postgis/trunk@3076 b70326c6-7e19-0410-871a-916f4a2858ee
74 lines
2.2 KiB
XML
74 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<refentry id="ST_IsRing">
|
|
<refnamediv>
|
|
<refname>ST_IsRing</refname>
|
|
|
|
<refpurpose>Returns <varname>TRUE</varname> if this
|
|
<varname>LINESTRING</varname> is both closed and simple.</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
<funcsynopsis>
|
|
<funcprototype>
|
|
<funcdef>boolean <function>ST_IsRing</function></funcdef>
|
|
|
|
<paramdef><type>geometry </type> <parameter>g</parameter></paramdef>
|
|
</funcprototype>
|
|
</funcsynopsis>
|
|
</refsynopsisdiv>
|
|
|
|
<refsection>
|
|
<title>Description</title>
|
|
|
|
<para>Returns <varname>TRUE</varname> if this
|
|
<varname>LINESTRING</varname> is both <xref linkend="ST_IsClosed" />
|
|
(<function>ST_StartPoint(<parameter>g</parameter>)</function>
|
|
<function>~=</function>
|
|
<function>ST_Endpoint(<parameter>g</parameter>)</function>) and <xref
|
|
linkend="ST_IsSimple" /> (does not self intersect).</para>
|
|
|
|
<para><inlinemediaobject>
|
|
<imageobject>
|
|
<imagedata fileref="images/check.png" />
|
|
</imageobject>
|
|
</inlinemediaobject> This method implements the <ulink
|
|
url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple Features
|
|
Implementation Specification for SQL.</ulink> OGC SFSQL 1.1 -
|
|
2.1.5.1</para>
|
|
|
|
<para><inlinemediaobject>
|
|
<imageobject>
|
|
<imagedata fileref="images/check.png" />
|
|
</imageobject>
|
|
</inlinemediaobject> This method implements the SQL/MM specification:
|
|
SQL-MM 3: 7.1.6</para>
|
|
|
|
<note>
|
|
<para>SQL-MM defines the result of
|
|
<function>ST_IsRing(<varname>NULL</varname>)</function> to be 0, while
|
|
PostGIS returns <varname>NULL</varname>.</para>
|
|
</note>
|
|
|
|
<!-- Optionally mention 3d support -->
|
|
<para><inlinemediaobject>
|
|
<imageobject>
|
|
<imagedata fileref="images/check.png" />
|
|
</imageobject>
|
|
</inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
|
|
</refsection>
|
|
|
|
|
|
<refsection>
|
|
<title>Examples</title>
|
|
|
|
<programlisting>
|
|
</programlisting>
|
|
</refsection>
|
|
|
|
<refsection>
|
|
<title>See Also</title>
|
|
|
|
<para><xref linkend="ST_IsSimple" />, <xref linkend="ST_StartPoint" />,
|
|
<xref linkend="ST_EndPoint" /></para>
|
|
</refsection>
|
|
</refentry> |