From: Regina Obe Date: Sat, 5 Mar 2011 06:17:06 +0000 (+0000) Subject: Flag more functions as supporting TINS, provide some examples X-Git-Tag: 2.0.0alpha1~1924 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c388385b4abdb93ed30d3cf336c5738996ff1e7a;p=postgis Flag more functions as supporting TINS, provide some examples git-svn-id: http://svn.osgeo.org/postgis/trunk@6877 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_accessor.xml b/doc/reference_accessor.xml index ed77e2634..91d80850e 100644 --- a/doc/reference_accessor.xml +++ b/doc/reference_accessor.xml @@ -40,6 +40,7 @@ &curve_support; &Z_support; &P_support; + &T_support; @@ -59,6 +60,25 @@ --result POLYHEDRALSURFACE +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 @@ -166,7 +186,8 @@ MULTIPOINT(-1 1 1,1 1 0.75) &sqlmm_compliant; SQL-MM 3: 5.1.3 &curve_support; &Z_support; - + &P_support; + &T_support; @@ -222,9 +243,10 @@ MULTIPOINT(-1 1 1,1 1 0.75) &sqlmm_compliant; SQL-MM 3: 5.1.2 - Enhanced: 2.0.0 support for Polyhedral surfaces was introduced. No longer throws an exception if given empty geometry. + Enhanced: 2.0.0 support for Polyhedral surfaces and TINs was introduced. No longer throws an exception if given empty geometry. Prior to 2.0.0, this function throws an exception if used with empty geometry. &P_support; + &T_support; @@ -605,16 +627,41 @@ SELECT ST_AsEWKT(ST_GeometryN(geom,2)) as wkt 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 - + ST_LineString 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 - + ST_PolyhedralSurface + + 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 + + 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 See Also