]> granicus.if.org Git - postgis/commitdiff
#949 more legacy cleanup -- add G-M to uninstall, remove accum
authorRegina Obe <lr@pcorp.us>
Wed, 29 Jun 2011 16:26:06 +0000 (16:26 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 29 Jun 2011 16:26:06 +0000 (16:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7520 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/legacy.sql.in.c
postgis/postgis.sql.in.c
postgis/uninstall_legacy.sql.in.c

index 4b1c555885eeddd0f709e89acbd5883a0df99d36..e4841e2877db032669bb8dfbdb6a42b0d7c4c587 100644 (file)
@@ -129,7 +129,9 @@ CREATE OR REPLACE FUNCTION st_geometry(box3d_extent)
        LANGUAGE 'C' IMMUTABLE STRICT;
        
 -- Deprecation in 1.5.0
-CREATE OR REPLACE FUNCTION st_geometry_analyze(internal)
+-- these remarked out functions cause problems and no one uses them directly
+-- They should not be installed
+/** CREATE OR REPLACE FUNCTION st_geometry_analyze(internal)
        RETURNS bool
 #ifdef GSERIALIZED_ON
        AS 'MODULE_PATHNAME', 'geometry_analyze'
@@ -174,7 +176,7 @@ CREATE OR REPLACE FUNCTION st_spheroid_out(spheroid)
        AS 'MODULE_PATHNAME','ellipsoid_out'
        LANGUAGE 'C' IMMUTABLE STRICT;
        
-
+**/
 -- Deprecation in 1.5.0
 CREATE OR REPLACE FUNCTION st_geometry_lt(geometry, geometry)
        RETURNS bool
@@ -1799,6 +1801,13 @@ CREATE OR REPLACE FUNCTION zmflag(geometry)
 -- end old ogc names that have been replaced with new SQL-MM names --
 
 --- Start Aggregates and supporting functions --
+-- Deprecation in: 1.2.3
+CREATE AGGREGATE accum (
+       sfunc = pgis_geometry_accum_transfn,
+       basetype = geometry,
+       stype = pgis_abs,
+       finalfunc = pgis_geometry_accum_finalfn
+       );
 -- Deprecation in 1.2.3
 CREATE OR REPLACE FUNCTION collect(geometry, geometry)
        RETURNS geometry
index 0892d6ffc279d87f7b682f2ac0d8873c3430b446..04f1a8f598fc69bc3afd13e72fb3a66fedf424c6 100644 (file)
@@ -3451,14 +3451,6 @@ CREATE OR REPLACE FUNCTION pgis_geometry_makeline_finalfn(pgis_abs)
        AS 'MODULE_PATHNAME'\r
        LANGUAGE 'C';\r
 \r
--- Deprecation in: 1.2.3\r
-CREATE AGGREGATE accum (\r
-       sfunc = pgis_geometry_accum_transfn,\r
-       basetype = geometry,\r
-       stype = pgis_abs,\r
-       finalfunc = pgis_geometry_accum_finalfn\r
-       );\r
-\r
 -- Availability: 1.2.2\r
 CREATE AGGREGATE ST_Accum (\r
        sfunc = pgis_geometry_accum_transfn,\r
@@ -5026,7 +5018,7 @@ $BODY$
                END LOOP;\r
 \r
        -- We now have the diameter of the convex hull.  The following line returns it if desired.\r
-       -- RETURN MakeLine(PointN(ring,idx1),PointN(ring,idx2));\r
+       -- RETURN ST_MakeLine(ST_PointN(ring,idx1),ST_PointN(ring,idx2));\r
 \r
        -- Now for the Minimum Bounding Circle.  Since we know the two points furthest from each\r
        -- other, the MBC must go through those two points. Start with those points as a diameter of a circle.\r
index a328b8903b442a9fd059426a88aad521c4565c70..506d91f320b8a172fa03588f3677a71034c99ccd 100644 (file)
@@ -17,6 +17,7 @@ DROP FUNCTION IF EXISTS Translate(geometry,float8,float8);
 DROP FUNCTION IF EXISTS TransScale(geometry,float8,float8,float8,float8);
 
 -- Other functions --
+DROP AGGREGATE IF EXISTS Accum(geometry);
 DROP FUNCTION IF EXISTS AddBBox(geometry);
 DROP FUNCTION IF EXISTS AddPoint(geometry,geometry);
 DROP FUNCTION IF EXISTS AddPoint(geometry,geometry, integer);
@@ -70,6 +71,7 @@ DROP AGGREGATE IF EXISTS Extent(geometry);
 DROP FUNCTION IF EXISTS Find_Extent(text,text);
 DROP FUNCTION IF EXISTS Find_Extent(text,text,text);
 --- End Extent related functions --
+
 DROP FUNCTION IF EXISTS EndPoint(geometry);
 DROP FUNCTION IF EXISTS ExteriorRing(geometry);
 DROP FUNCTION IF EXISTS Force_2d(geometry);
@@ -79,6 +81,29 @@ DROP FUNCTION IF EXISTS Force_3dz(geometry);
 DROP FUNCTION IF EXISTS Force_4d(geometry);
 DROP FUNCTION IF EXISTS Force_Collection(geometry);
 DROP FUNCTION IF EXISTS ForceRHR(geometry);
+DROP FUNCTION IF EXISTS GeomCollFromText(text, int4);
+DROP FUNCTION IF EXISTS GeomCollFromText(text);
+DROP FUNCTION IF EXISTS GeomCollFromWKB(bytea, int);
+DROP FUNCTION IF EXISTS GeomCollFromWKB(bytea);
+DROP FUNCTION IF EXISTS GeometryN(geometry,integer);
+DROP FUNCTION IF EXISTS GeomUnion(geometry,geometry);
+DROP FUNCTION IF EXISTS getbbox(geometry);
+DROP FUNCTION IF EXISTS Intersects(geometry,geometry);
+DROP FUNCTION IF EXISTS IsRing(geometry);
+DROP FUNCTION IF EXISTS IsSimple(geometry);
+DROP FUNCTION IF EXISTS length_spheroid(geometry, spheroid);
+DROP FUNCTION IF EXISTS length2d_spheroid(geometry, spheroid);
+DROP FUNCTION IF EXISTS length3d_spheroid(geometry, spheroid);
+DROP FUNCTION IF EXISTS LineMerge(geometry);
+DROP FUNCTION IF EXISTS locate_along_measure(geometry, float8);
+DROP FUNCTION IF EXISTS MakeBox2d(geometry, geometry);
+DROP AGGREGATE IF EXISTS MakeLine(geometry);
+DROP FUNCTION IF EXISTS MakeLine(geometry, geometry);
+DROP FUNCTION IF EXISTS MakePolygon(geometry, geometry[]);
+DROP FUNCTION IF EXISTS MakePolygon(geometry);
+DROP FUNCTION IF EXISTS MPolyFromWKB(bytea);
+DROP FUNCTION IF EXISTS multi(geometry);
+
 DROP FUNCTION IF EXISTS SnapToGrid(geometry, float8, float8, float8, float8);
 DROP FUNCTION IF EXISTS SnapToGrid(geometry, float8);
 DROP FUNCTION IF EXISTS SnapToGrid(geometry, geometry, float8, float8, float8, float8);