CREATE CAST (geography AS geography) WITH FUNCTION geography(geography, integer, boolean) AS IMPLICIT;
-- Availability: 2.0.0
+-- Changed: 2.1.4 ticket #2870 changed to use geography bytea func instead of geometry bytea
CREATE OR REPLACE FUNCTION geography(bytea)
RETURNS geography
AS 'MODULE_PATHNAME','geography_from_binary'
SELECT '#2788', valid, reason, ST_AsText(location) from ST_IsValidDetail('POLYGON((0 0, 0 1, 2 1, 2 2, 1 2, 1 0, 0 0))'::geometry);
+SELECT '#2870', ST_Summary('Point(151.215289 -33.856885)'::geometry::bytea::geography) ;
+
-- Clean up
DELETE FROM spatial_ref_sys;
#2704|POLYGON((0 0,0 1,1 1,1 0,0 0))
#2712|LINESTRING EMPTY
#2788|f|Self-intersection|POINT(1 1)
+#2870|Point[GS]