<para>&curve_support;</para>
<para>&Z_support;</para>
<para>&P_support;</para>
+ <para>&T_support;</para>
</refsection>
--result
POLYHEDRALSURFACE
</programlisting>
+<programlisting>SELECT GeometryType(geom) as result
+ FROM
+ (SELECT
+ ST_GeomFromEWKT('TIN (((
+ 0 0 0,
+ 0 0 1,
+ 0 1 0,
+ 0 0 0
+ )), ((
+ 0 0 0,
+ 0 1 0,
+ 1 1 0,
+ 0 0 0
+ ))
+ )') AS geom
+ ) AS g;
+ result
+--------
+ TIN </programlisting>
</refsection>
<!-- Optionally add a "See Also" section -->
<para>&sqlmm_compliant; SQL-MM 3: 5.1.3</para>
<para>&curve_support;</para>
<para>&Z_support;</para>
-
+ <para>&P_support;</para>
+ <para>&T_support;</para>
</refsection>
</para>
<para>&sqlmm_compliant; SQL-MM 3: 5.1.2</para>
- <para>Enhanced: 2.0.0 support for Polyhedral surfaces was introduced. No longer throws an exception if given empty geometry.</para>
+ <para>Enhanced: 2.0.0 support for Polyhedral surfaces and TINs was introduced. No longer throws an exception if given empty geometry.</para>
<note> <para>Prior to 2.0.0, this function throws an exception if used with empty geometry. </para></note>
<para>&P_support;</para>
+ <para>&T_support;</para>
</refsection>
<refsection>
<programlisting>SELECT ST_GeometryType(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)'));
--result
- ST_LineString
- </programlisting>
+ ST_LineString</programlisting>
<programlisting>SELECT ST_GeometryType(ST_GeomFromEWKT('POLYHEDRALSURFACE( ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),
((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1)) )'));
--result
- ST_PolyhedralSurface
- </programlisting>
+ ST_PolyhedralSurface</programlisting>
+
+ <programlisting>SELECT ST_GeometryType(ST_GeomFromEWKT('POLYHEDRALSURFACE( ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),
+ ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
+ ((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),
+ ((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1)) )'));
+ --result
+ ST_PolyhedralSurface</programlisting>
+
+ <programlisting>SELECT ST_GeometryType(geom) as result
+ FROM
+ (SELECT
+ ST_GeomFromEWKT('TIN (((
+ 0 0 0,
+ 0 0 1,
+ 0 1 0,
+ 0 0 0
+ )), ((
+ 0 0 0,
+ 0 1 0,
+ 1 1 0,
+ 0 0 0
+ ))
+ )') AS geom
+ ) AS g;
+ result
+--------
+ ST_Tin </programlisting>
</refsection>
<refsection>
<title>See Also</title>