mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 17:42:38 +00:00
Move over ST_Zmflag
git-svn-id: http://svn.osgeo.org/postgis/trunk@3504 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
f82916840b
commit
a2c0010c92
|
@ -413,15 +413,6 @@
|
|||
|
||||
<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>
|
||||
|
||||
|
|
|
@ -4358,7 +4358,7 @@ SELECT ST_Y(ST_Centroid(ST_GeomFromEWKT('LINESTRING(1 2 3 4, 1 1 1 1)')));
|
|||
<refsection>
|
||||
<title>Examples</title>
|
||||
<programlisting>SELECT ST_Z(ST_GeomFromEWKT('POINT(1 2 3 4)'));
|
||||
st_y
|
||||
st_z
|
||||
------
|
||||
3
|
||||
(1 row)
|
||||
|
@ -4374,6 +4374,70 @@ SELECT ST_Y(ST_Centroid(ST_GeomFromEWKT('LINESTRING(1 2 3 4, 1 1 1 1)')));
|
|||
</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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue