From ac58e8af0b78a096e3159426aa44adbe9db4453a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 16 Jan 2012 14:46:03 +0000 Subject: [PATCH] Add ST_EWKT for geography type (#675) git-svn-id: http://svn.osgeo.org/postgis/trunk@8844 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_output.xml | 6 +++++- postgis/geography.sql.in.c | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/reference_output.xml b/doc/reference_output.xml index 3a2d1607e..e5ec9ad68 100644 --- a/doc/reference_output.xml +++ b/doc/reference_output.xml @@ -191,6 +191,10 @@ text ST_AsEWKT geometry g1 + + text ST_AsEWKT + geography g1 + @@ -208,7 +212,7 @@ ST_AsEWKT is the reverse of . Use to convert to a postgis geometry from ST_AsEWKT representation. - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. + Enhanced: 2.0.0 support for Geography, Polyhedral surfaces, Triangles and TIN was introduced. &Z_support; &curve_support; &P_support; diff --git a/postgis/geography.sql.in.c b/postgis/geography.sql.in.c index dd0fe34c7..1903e838a 100644 --- a/postgis/geography.sql.in.c +++ b/postgis/geography.sql.in.c @@ -670,6 +670,12 @@ CREATE OR REPLACE FUNCTION ST_AsBinary(geography,text) RETURNS bytea AS $$ SELECT ST_AsBinary($1::geometry, $2); $$ LANGUAGE 'SQL' IMMUTABLE STRICT; + +-- Availability: 2.0.0 +CREATE OR REPLACE FUNCTION ST_AsEWKT(geography) + RETURNS TEXT + AS 'MODULE_PATHNAME','LWGEOM_asEWKT' + LANGUAGE 'C' IMMUTABLE STRICT; ----------------------------------------------------------------------------- -- 2.40.0