Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2687:3b98de34de90 | 2688:d316a6e41f54 |
---|---|
48 ('AT', 'XXX', '00001', '00000', 2)::isrs), | 48 ('AT', 'XXX', '00001', '00000', 2)::isrs), |
49 0) | 49 0) |
50 $$, | 50 $$, |
51 'P0002', NULL, | 51 'P0002', NULL, |
52 'ISRSrange_axis fails if no contiguous axis can be constructed'); | 52 'ISRSrange_axis fails if no contiguous axis can be constructed'); |
53 | |
54 SELECT ok( | |
55 ST_IsSimple(ISRSrange_axis(isrsrange( | |
56 ('AT', 'XXX', '00001', '00000', 0)::isrs, | |
57 ('AT', 'XXX', '00001', '00000', 2)::isrs), | |
58 5)), | |
59 'ISRSrange_axis returns a valid simple feature'); | |
53 | 60 |
54 SELECT ok( | 61 SELECT ok( |
55 ISRSrange_area(ISRSrange_axis(isrsrange( | 62 ISRSrange_area(ISRSrange_axis(isrsrange( |
56 ('AT', 'XXX', '00001', '00000', 0)::isrs, | 63 ('AT', 'XXX', '00001', '00000', 0)::isrs, |
57 ('AT', 'XXX', '00001', '00000', 1)::isrs), | 64 ('AT', 'XXX', '00001', '00000', 1)::isrs), |