comparison pkg/imports/st.go @ 2248:cce158db02b0

Input area as multipolygons to generate area from stretch Doing so is more resilient against invalid geometries and gives more plausible results if tributaries are involved (i.e. does not include the adjacent area of the tributary in the result).
author Tom Gottfried <tom@intevation.de>
date Wed, 13 Feb 2019 16:48:52 +0100
parents 97bba8b51b9c
children c5bbe2409a52
comparison
equal deleted inserted replaced
2247:e6fba449aa3c 2248:cce158db02b0
98 ) VALUES ( 98 ) VALUES (
99 $11, 99 $11,
100 (SELECT r FROM r), 100 (SELECT r FROM r),
101 ISRSrange_area( 101 ISRSrange_area(
102 (SELECT r FROM r), 102 (SELECT r FROM r),
103 (SELECT ST_Union(CAST(area AS geometry)) 103 (SELECT ST_Collect(CAST(area AS geometry))
104 FROM waterway.waterway_area)), 104 FROM waterway.waterway_area)),
105 $12, 105 $12,
106 $13, 106 $13,
107 $14, 107 $14,
108 $15) 108 $15)