From 01c18b97f1c4428de0bafdd5f672a5554dc1fbeb Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 13 May 2015 19:08:47 +0000 Subject: [PATCH] De-dupe doc entries git-svn-id: http://svn.osgeo.org/postgis/trunk@13500 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_constructor.xml | 71 ++++------------------------------- 1 file changed, 8 insertions(+), 63 deletions(-) diff --git a/doc/reference_constructor.xml b/doc/reference_constructor.xml index 531448328..583d24bcd 100644 --- a/doc/reference_constructor.xml +++ b/doc/reference_constructor.xml @@ -304,6 +304,14 @@ SELECT ST_AsText(ST_GeomFromTWKB(ST_AsTWKB('LINESTRING(126 34, 127 35)'::geometr LINESTRING(126 34, 127 35) (1 row) + +SELECT ST_AsEWKT( + ST_GeomFromTWKB(E'\\x620002f7f40dbce4040105') +); + st_asewkt +------------------------------------------------------ +LINESTRING(-113.98 39.198,-113.981 39.195) +(1 row) @@ -1027,69 +1035,6 @@ SELECT - - - ST_GeomFromTWKB - Creates a geometry instance from a Tiny Well-Known Binary geometry - representation (TWKB). - - - - - - geometry ST_GeomFromTWKB - bytea geom - - - - - - Description - - The ST_GeomFromTWKB function, takes a tiny well-known - binary representation of a geometry and creates an instance of the appropriate - geometry type. - - SRID always defaults to 0 (Unknown). - - TWKB doesn't make any difference of Z and M. So a 3D geoemtry in TWKB will always be a GeometryZ, like PointZ when converted to PostGIS geometry - - - - - - Examples - - --Although bytea rep contains single \, these need to be escaped when inserting into a table - -- unless standard_conforming_strings is set to on. -SELECT ST_AsEWKT( -ST_GeomFromTWKB(E'\\x304202f7f40dbce4040105') -); - st_asewkt ------------------------------------------------------- -LINESTRING(-113.98 39.198,-113.981 39.195) -(1 row) - -SELECT - ST_AsText( - ST_GeomFromTWKB( - ST_AsTWKB('POINT(2 5)'::geometry,0) - ) - ); - st_astext ------------- - POINT(2 5) -(1 row) - - - - - See Also - - ,,, , - - - ST_LineFromEncodedPolyline -- 2.40.0