]> granicus.if.org Git - postgis/commitdiff
Add ST_EWKT for geography type (#675)
authorSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 14:46:03 +0000 (14:46 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 14:46:03 +0000 (14:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8844 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_output.xml
postgis/geography.sql.in.c

index 3a2d1607e6967ec0aeba4ba9c6eba324861bed96..e5ec9ad68884026554aba65abead916decc3b32e 100644 (file)
                                <funcdef>text <function>ST_AsEWKT</function></funcdef>
                                <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
                          </funcprototype>
+                         <funcprototype>
+                               <funcdef>text <function>ST_AsEWKT</function></funcdef>
+                               <paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
+                         </funcprototype>
                        </funcsynopsis>
                  </refsynopsisdiv>
 
                        <note>
                          <para>ST_AsEWKT is the reverse of <xref linkend="ST_GeomFromEWKT" />.  Use <xref linkend="ST_GeomFromEWKT" /> to convert to a postgis geometry from ST_AsEWKT representation.</para>
                        </note>
-                       <para>Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced.</para>
+                       <para>Enhanced: 2.0.0 support for Geography, Polyhedral surfaces, Triangles and TIN was introduced.</para>
                        <para>&Z_support;</para>
                        <para>&curve_support;</para>
                        <para>&P_support;</para>
index dd0fe34c7c9444de93846bc61a2a620893907f52..1903e838a427d3e3285326f9e6fbd19972337138 100644 (file)
@@ -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;
        
 -----------------------------------------------------------------------------