]> granicus.if.org Git - postgis/commitdiff
Fix for #981 - using astext legacy function in tests
authorRegina Obe <lr@pcorp.us>
Tue, 24 May 2011 06:44:34 +0000 (06:44 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 24 May 2011 06:44:34 +0000 (06:44 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7221 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/hierarchy.sql
topology/test/query_features.sql

index 382a15eb416d9784afb03b9ddbdd8c22dd9b94b0..d5d20cb2c6e91c46f5b508884a2dad6144e84c24 100644 (file)
@@ -38,7 +38,7 @@ INSERT INTO features.big_parcels VALUES ('F3F6', -- Feature name
     (SELECT layer_id FROM topology.layer WHERE table_name = 'big_parcels'),
     '{{6,1},{7,1}}')); -- F3 and F6
 
-SELECT feature_name, astext(topology.geometry(feature)) from features.big_parcels;
+SELECT feature_name,ST_AsText(topology.geometry(feature)) from features.big_parcels;
 
 SELECT a.feature_name, b.feature_name
        FROM features.land_parcels a, features.big_parcels b
@@ -66,7 +66,7 @@ INSERT INTO features.big_signs VALUES ('S1S2', -- Feature name
     (SELECT layer_id FROM topology.layer WHERE table_name = 'big_signs'),
     '{{1,2},{2,2}}')); -- S1 and S2
 
-SELECT feature_name, astext(topology.geometry(feature)) from features.big_signs;
+SELECT feature_name, ST_AsText(topology.geometry(feature)) from features.big_signs;
 
 SELECT a.feature_name, b.feature_name
        FROM features.traffic_signs a, features.big_signs b
index b52a0f3eeceb740edf7ec60e499a8fb0eed6a911..8aac77ce8189849673023c5a53cf3012f07e72f0 100644 (file)
@@ -20,17 +20,17 @@ BEGIN;
 
 -- 7. Query the data.
 SELECT a.feature_name, id(a.feature) as tg_id,
-       astext(topology.Geometry(a.feature)) as geom
+       ST_AsText(topology.Geometry(a.feature)) as geom
 FROM features.land_parcels a;
 
 -- Query not in original example --strk;
 SELECT a.feature_name, id(a.feature) as tg_id,
-       astext(topology.Geometry(a.feature)) as geom
+       ST_AsText(topology.Geometry(a.feature)) as geom
 FROM features.traffic_signs a;
 
 -- Query not in original example --strk;
 SELECT a.feature_name, id(a.feature) as tg_id,
-       astext(topology.Geometry(a.feature)) as geom
+       ST_AsText(topology.Geometry(a.feature)) as geom
 FROM features.city_streets a;
 
 --NOTYET--