From affc0ecc3fc14b30e604fb79b9958a3fcefcbfe2 Mon Sep 17 00:00:00 2001 From: Reijer Copier Date: Fri, 11 Sep 2020 11:55:45 +0200 Subject: [PATCH] Stop using obsolete PostGIS function name --- .../datasources/feature/simplesql-fail-missing-dep.xml | 8 ++++---- .../workspace/datasources/feature/simplesql-ok.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-fail-missing-dep.xml b/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-fail-missing-dep.xml index da35ca0b45..586d9a9ee4 100644 --- a/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-fail-missing-dep.xml +++ b/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-fail-missing-dep.xml @@ -19,20 +19,20 @@ - SELECT name, title, asbinary(the_geom) FROM some_table + SELECT name, title, st_asbinary(the_geom) FROM some_table WHERE the_geom && st_geomfromtext(?, -1) - SELECT astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox + SELECT st_astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox - SELECT name, title, asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table + SELECT name, title, st_asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table WHERE the_geom && st_geomfromtext(?, -1) - SELECT name, title, asbinary(st_simplify(the_geom, 30)) FROM some_table + SELECT name, title, st_asbinary(st_simplify(the_geom, 30)) FROM some_table WHERE the_geom && st_geomfromtext(?, -1) and not st_isempty(st_simplify(the_geom, 30)) diff --git a/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-ok.xml b/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-ok.xml index bbb3c918f0..ad845b9ee1 100644 --- a/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-ok.xml +++ b/deegree-tests/deegree-resource-deps-tests/src/test/resources/workspace/datasources/feature/simplesql-ok.xml @@ -19,20 +19,20 @@ - SELECT name, title, asbinary(the_geom) FROM some_table + SELECT name, title, st_asbinary(the_geom) FROM some_table WHERE the_geom && st_geomfromtext(?, -1) - SELECT astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox + SELECT st_astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox - SELECT name, title, asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table + SELECT name, title, st_asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table WHERE the_geom && st_geomfromtext(?, -1) - SELECT name, title, asbinary(st_simplify(the_geom, 30)) FROM some_table + SELECT name, title, st_asbinary(st_simplify(the_geom, 30)) FROM some_table WHERE the_geom && st_geomfromtext(?, -1) and not st_isempty(st_simplify(the_geom, 30))