From: Paul Ramsey Date: Wed, 13 May 2015 18:38:02 +0000 (+0000) Subject: #3085, document ST_GeomFromTWKB X-Git-Tag: 2.2.0rc1~509 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=174ea1391ce6ce2cf38318253cdb6fc239e447c0;p=postgis #3085, document ST_GeomFromTWKB git-svn-id: http://svn.osgeo.org/postgis/trunk@13498 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_constructor.xml b/doc/reference_constructor.xml index eaf5d15de..531448328 100644 --- a/doc/reference_constructor.xml +++ b/doc/reference_constructor.xml @@ -227,7 +227,7 @@ UPDATE sometable SET geog = ST_GeogFromText('SRID=4326;POINT(' || lon || ' ' || geography ST_GeogFromWKB - bytea geom + bytea wkb @@ -268,6 +268,50 @@ ST_GeogFromWKB(E'\\001\\002\\000\\000\\000\\002\\000\\000\\000\\037\\205\\353Q\\ + + + ST_GeomFromTWKB + Creates a geometry instance from a TWKB ("Tiny Well-Known Binary") geometry + representation. + + + + + + geometry ST_GeomFromTWKB + bytea twkb + + + + + + Description + + The ST_GeomFromTWKB function, takes a a TWKB ("Tiny Well-Known Binary") geometry representation (WKB) and creates an instance of the appropriate + geometry type. + + + + + + Examples + + +SELECT ST_AsText(ST_GeomFromTWKB(ST_AsTWKB('LINESTRING(126 34, 127 35)'::geometry))); + + st_astext +----------------------------- + LINESTRING(126 34, 127 35) +(1 row) + + + + + See Also + + + +