]> granicus.if.org Git - postgis/commitdiff
Fix online legacy test with sfcgal (#3105)
authorSandro Santilli <strk@keybit.net>
Mon, 4 May 2015 10:16:16 +0000 (10:16 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 4 May 2015 10:16:16 +0000 (10:16 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13477 b70326c6-7e19-0410-871a-916f4a2858ee

regress/sfcgal/legacy.sql

index db80f9a9aaff4ce284ecd99c4a4706ade13c31b0..a54ad3e6c2d44d41ec173db328f27839f48cb580 100644 (file)
@@ -9,8 +9,10 @@
 SET postgis.backend = 'sfcgal';
 SET client_min_messages TO WARNING;
 
-\i 00-regress-install/share/contrib/postgis/legacy.sql
+\cd :scriptdir
+\i legacy.sql
 
+TRUNCATE spatial_ref_sys;
 INSERT INTO "spatial_ref_sys" ("srid","auth_name","auth_srid","srtext","proj4text") VALUES (4326,'EPSG',4326,'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]','+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ');
 
 SELECT 'Starting up MapServer/Geoserver tests...';
@@ -55,4 +57,4 @@ SELECT 1869 As ticket_id, ST_AsText(ST_AsBinary('POINT(1 2)'));
 
 DELETE FROM spatial_ref_sys WHERE SRID = '4326';
 
-\i 00-regress-install/share/contrib/postgis/uninstall_legacy.sql
+\i uninstall_legacy.sql