Mercurial > gemma
diff schema/isrs_tests.sql @ 2431:48495bd3081d
Construct stretch area between distance marks also from non-contiguous axis
Before, both distance marks were required to be next to the same linestring
of the waterway axis.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 19:44:38 +0100 |
parents | 8481e6266691 |
children | 00cac7890574 |
line wrap: on
line diff
--- a/schema/isrs_tests.sql Thu Feb 28 17:30:26 2019 +0100 +++ b/schema/isrs_tests.sql Thu Feb 28 19:44:38 2019 +0100 @@ -100,3 +100,12 @@ 0)), 4326))), 'Self-intersecting multipolygon leads to one polygon in result'); + +SELECT ok( + ISRSrange_area( + isrsrange( + ('AT', 'XXX', '00001', '00000', 0)::isrs, + ('AT', 'XXX', '00001', '00000', 2)::isrs), + (SELECT ST_Collect(CAST(area AS geometry)) + FROM waterway.waterway_area)) IS NOT NULL, + 'Area generated from non-matching distance mark and non-contiguous axis');