From: Sandro Santilli Date: Fri, 28 Nov 2003 11:25:31 +0000 (+0000) Subject: Added explicit geometry as text cast X-Git-Tag: pgis_0_8_1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a953f8f9ae381d7a0eaef870d640af97951d84b;p=postgis Added explicit geometry as text cast git-svn-id: http://svn.osgeo.org/postgis/trunk@395 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/Attic/postgis_sql_73_end.sql.in b/Attic/postgis_sql_73_end.sql.in index 8bd4f9837..5c49751ac 100644 --- a/Attic/postgis_sql_73_end.sql.in +++ b/Attic/postgis_sql_73_end.sql.in @@ -12,6 +12,9 @@ -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- $Log$ +-- Revision 1.5 2003/11/28 11:25:31 strk +-- Added explicit geometry as text cast +-- -- Revision 1.4 2003/07/01 18:30:55 pramsey -- Added CVS revision headers. -- @@ -30,6 +33,7 @@ CREATE CAST ( box3d AS geometry ) WITH FUNCTION geometry(box3d) AS IMPLICIT; CREATE CAST ( text AS geometry) WITH FUNCTION geometry(text) AS IMPLICIT; CREATE CAST ( wkb AS bytea ) WITH FUNCTION bytea(wkb) AS IMPLICIT; CREATE CAST ( box3d AS box ) WITH FUNCTION box3dtobox(box3d); +CREATE CAST ( geometry AS text ) WITH FUNCTION astext(geometry); -- - - - - - - - - - - - - - - - - - - - - - - - - - - - -- UPDATE_GEOMETRY_STATS() diff --git a/Attic/postgis_sql_74_end.sql.in b/Attic/postgis_sql_74_end.sql.in index bc872ba40..d6d0f5959 100644 --- a/Attic/postgis_sql_74_end.sql.in +++ b/Attic/postgis_sql_74_end.sql.in @@ -12,6 +12,9 @@ -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- $Log$ +-- Revision 1.4 2003/11/28 11:25:31 strk +-- Added explicit geometry as text cast +-- -- Revision 1.3 2003/11/28 11:06:49 strk -- Added WKB_recv function for binary WKB input -- @@ -53,6 +56,7 @@ CREATE CAST ( box3d AS geometry ) WITH FUNCTION geometry(box3d) AS IMPLICIT; CREATE CAST ( text AS geometry) WITH FUNCTION geometry(text) AS IMPLICIT; CREATE CAST ( wkb AS bytea ) WITH FUNCTION bytea(wkb) AS IMPLICIT; CREATE CAST ( box3d AS box ) WITH FUNCTION box3dtobox(box3d); +CREATE CAST ( geometry AS text ) WITH FUNCTION astext(geometry); -- - - - - - - - - - - - - - - - - - - - - - - - - - - - -- UPDATE_GEOMETRY_STATS()