From: Regina Obe Date: Wed, 16 Mar 2011 05:15:35 +0000 (+0000) Subject: Document ST_ASX3D function -- still a work in progress -- will add more as I flesh... X-Git-Tag: 2.0.0alpha1~1898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe8055a8e0b769a423555454e92377e4696ee9db;p=postgis Document ST_ASX3D function -- still a work in progress -- will add more as I flesh out the rest. git-svn-id: http://svn.osgeo.org/postgis/trunk@6904 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_output.xml b/doc/reference_output.xml index cd7777bea..8f45d1adb 100644 --- a/doc/reference_output.xml +++ b/doc/reference_output.xml @@ -846,7 +846,100 @@ SELECT ST_AsGML(3, ST_GeomFromEWKT('POLYHEDRALSURFACE( ((0 0 0, 0 0 1, 0 1 1, 0 M 0 0 L 0 -1 1 -1 1 0 Z + + + + ST_AsX3D + + Returns a Geometry in X3D (spec 3.0) data given a geometry + + + + + + text ST_AsX3D + geometry g1 + + + text ST_AsX3D + geometry g1 + integer prec + + + + + + Description + + Returns an X3D fragment in X3D 3.0 spec format http://www.web3d.org/specifications/x3d-3.0.xsd. If prec (precision) is not specified then defaults to 15. TINs are modeled as IndexedTriangleSet, MultiPoints as PointSet, LineString As LineSets, Polyhedral surfaces as IndexedFaceSet + Lots of advancements happening in 3D space particularly with X3D Integration with HTML5 + There is also a nice open source X3D viewer you can use to view rendered geometries. Free Wrl http://freewrl.sourceforge.net/ binaries available for Mac, Linux, and Windows. + Availability: 2.0.0 + + &Z_support; + + &P_support; + + + &T_support; + + + + Example: Create a fully functional X3D document + + + + + + + + + ' || + ST_AsX3D( 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)) )')) || + ' + + +' As x3ddoc;]]> + + x3ddoc + -------- + + + + + + + + + + + +]]> + + + Example: TIN + + + x3dfrag + -------- +]]> + +