From 255ecfb61e564d94f08608d28729efb202a1aad8 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Wed, 30 Dec 2009 06:12:07 +0000 Subject: [PATCH] #365 document ST_GeogFromWKB and ST_GeogFromText git-svn-id: http://svn.osgeo.org/postgis/trunk@5066 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_constructor.xml | 77 +++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/doc/reference_constructor.xml b/doc/reference_constructor.xml index 8ade2d2c8..1ac06e545 100644 --- a/doc/reference_constructor.xml +++ b/doc/reference_constructor.xml @@ -101,6 +101,31 @@ , + + + + ST_GeogFromText + Return a specified geography value from Well-Known Text representation or extended (WKT). + + + + + geography ST_GeogFromText + text EWKT + + + + + Description + Returns a geography object from the well-known text or extended well-known representation. SRID 4326 is assumed. This + is an alia for ST_GeographyFromText + + + + See Also + , + + @@ -125,6 +150,58 @@ + + + + ST_GeogFromWKB + Creates a geography instance from a Well-Known Binary geometry + representation (WKB) or extended Well Known Binary (EWKB). + + + + + + geography ST_GeogFromWKB + bytea geom + + + + + + Description + + The ST_GeogFromWKB function, takes a well-known + binary representation (WKB) of a geometry or PostGIS Extended WKB and creates an instance of the appropriate + geography type. This function plays the role of the Geometry Factory in + SQL. + + If SRID is not specified, it defaults to 4326 (WGS 84 long lat). + + &curve_support; + + + + + + Examples + + --Although bytea rep contains single \, these need to be escaped when inserting into a table +SELECT ST_AsText( +ST_GeogFromWKB(E'\\001\\002\\000\\000\\000\\002\\000\\000\\000\\037\\205\\353Q\\270~\\\\\\300\\323Mb\\020X\\231C@\\020X9\\264\\310~\\\\\\300)\\\\\\217\\302\\365\\230C@',4326) +); + st_astext +------------------------------------------------------ + LINESTRING(-113.98 39.198,-113.981 39.195) +(1 row) + + + + + See Also + + , + + -- 2.50.1