<variablelist>
- <varlistentry id="zmflag">
- <term>ST_zmflag(geometry)</term>
-
- <listitem>
- <para>Returns ZM (dimension semantic) flag of the geometries as a
- small int. Values are: 0=2d, 1=3dm, 2=3dz, 3=4d.</para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>ST_nrings(geometry)</term>
<refsection>
<title>Examples</title>
<programlisting>SELECT ST_Z(ST_GeomFromEWKT('POINT(1 2 3 4)'));
- st_y
+ st_z
------
3
(1 row)
</refsection>
</refentry>
+ <refentry id="ST_Zmflag">
+ <refnamediv>
+ <refname>ST_Zmflag</refname>
+
+ <refpurpose>Returns ZM (dimension semantic) flag of the geometries as a
+ small int. Values are: 0=2d, 1=3dm, 2=3dz, 3=4d.</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>smallint <function>ST_Zmflag</function></funcdef>
+ <paramdef><type>geometry </type> <parameter>geomA</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>Description</title>
+
+ <para>Returns ZM (dimension semantic) flag of the geometries as a
+ small int. Values are: 0=2d, 1=3dm, 2=3dz, 3=4d.</para>
+
+ <!-- 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>SELECT ST_Zmflag(ST_GeomFromEWKT('LINESTRING(1 2, 3 4)'));
+ st_zmflag
+-----------
+ 0
+
+SELECT ST_Zmflag(ST_GeomFromEWKT('LINESTRINGM(1 2 3, 3 4 3)'));
+ st_zmflag
+-----------
+ 1
+
+SELECT ST_Zmflag(ST_GeomFromEWKT('CIRCULARSTRING(1 2 3, 3 4 3, 5 6 3)'));
+ st_zmflag
+-----------
+ 2
+SELECT ST_Zmflag(ST_GeomFromEWKT('POINT(1 2 3 4)'));
+ st_zmflag
+-----------
+ 3
+</programlisting>
+ </refsection>
+
+ <!-- Optionally add a "See Also" section -->
+ <refsection>
+ <title>See Also</title>
+
+ <para><xref linkend="ST_CoordDim" /></para>
+ </refsection>
+ </refentry>
+
</sect1>