From: Regina Obe Date: Tue, 24 May 2011 06:44:34 +0000 (+0000) Subject: Fix for #981 - using astext legacy function in tests X-Git-Tag: 2.0.0alpha1~1592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6161063032ae42198f7ce422ab0415751087e0b7;p=postgis Fix for #981 - using astext legacy function in tests git-svn-id: http://svn.osgeo.org/postgis/trunk@7221 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/test/hierarchy.sql b/topology/test/hierarchy.sql index 382a15eb4..d5d20cb2c 100644 --- a/topology/test/hierarchy.sql +++ b/topology/test/hierarchy.sql @@ -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 diff --git a/topology/test/query_features.sql b/topology/test/query_features.sql index b52a0f3ee..8aac77ce8 100644 --- a/topology/test/query_features.sql +++ b/topology/test/query_features.sql @@ -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--