mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-26 01:52:37 +00:00
2ab25a9867
git-svn-id: http://svn.osgeo.org/postgis/trunk@7080 b70326c6-7e19-0410-871a-916f4a2858ee
11 lines
591 B
SQL
11 lines
591 B
SQL
-- $Id$
|
|
-- Test the populate_geometry_columns,DropGeometryTable etc --
|
|
\set VERBOSITY terse
|
|
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');
|
|
SELECT 'Unexistant: ' || DropGeometryTable('unexistent'); -- see ticket #861
|