2011-03-15 14:04:45 +00:00
|
|
|
-- $Id$
|
|
|
|
-- Test the populate_geometry_columns,DropGeometryTable etc --
|
2011-05-03 12:45:31 +00:00
|
|
|
\set VERBOSITY terse
|
2011-03-15 14:04:45 +00:00
|
|
|
DELETE FROM spatial_ref_sys WHERE srid = 4326;
|
|
|
|
INSERT INTO spatial_ref_sys ( srid, proj4text ) VALUES( 4326, '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs');
|
|
|
|
CREATE TABLE test_pt(gid SERIAL PRIMARY KEY, geom geometry);
|
|
|
|
INSERT INTO test_pt(geom) VALUES(ST_GeomFromEWKT('SRID=4326;POINT M(1 2 3)'));
|
|
|
|
SELECT populate_geometry_columns('test_pt'::regclass);
|
|
|
|
SELECT 'The result: ' || DropGeometryTable('test_pt');
|
2011-04-11 09:53:55 +00:00
|
|
|
SELECT 'Unexistant: ' || DropGeometryTable('unexistent'); -- see ticket #861
|