diff schema/isrs_tests.sql @ 2688:d316a6e41f54

Test if overlapping axis chunks are sewed together correctly Currently this is ensured by ST_SimplifyPreserveTopology. Imprecise buffering results made it necessary to introduce another cleaning step in the simulation of waterway area for the test data.
author Tom Gottfried <tom@intevation.de>
date Fri, 15 Mar 2019 16:35:08 +0100
parents dc4fae4bdb8f
children 453f15ba8030
line wrap: on
line diff
--- a/schema/isrs_tests.sql	Fri Mar 15 15:59:40 2019 +0100
+++ b/schema/isrs_tests.sql	Fri Mar 15 16:35:08 2019 +0100
@@ -52,6 +52,13 @@
     'ISRSrange_axis fails if no contiguous axis can be constructed');
 
 SELECT ok(
+    ST_IsSimple(ISRSrange_axis(isrsrange(
+            ('AT', 'XXX', '00001', '00000', 0)::isrs,
+            ('AT', 'XXX', '00001', '00000', 2)::isrs),
+        5)),
+    'ISRSrange_axis returns a valid simple feature');
+
+SELECT ok(
     ISRSrange_area(ISRSrange_axis(isrsrange(
                 ('AT', 'XXX', '00001', '00000', 0)::isrs,
                 ('AT', 'XXX', '00001', '00000', 1)::isrs),