Mercurial > gemma
changeset 1721:837d12b49dfd
Fixed fix for ISRSrange_area() function.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 08 Jan 2019 20:01:39 +0100 |
parents | a005816388b7 |
children | cfaa1291294c |
files | schema/isrs_functions.sql |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/schema/isrs_functions.sql Tue Jan 08 18:36:53 2019 +0100 +++ b/schema/isrs_functions.sql Tue Jan 08 20:01:39 2019 +0100 @@ -47,10 +47,9 @@ FROM ( SELECT (ST_Dump(wtwaxs)).geom AS line FROM axis) AS lines, - (SELECT ST_Collect(st_buffer(from_point.geom, 0.0001), - st_buffer(to_point.geom, 0.0001)) AS pts + (SELECT ST_Collect(from_point.geom, to_point.geom) AS pts FROM from_point, to_point) AS points - WHERE ST_intersects(lines.line, points.pts)), + WHERE ST_intersects(ST_Buffer(lines.line, 0.0001), points.pts)), axis_substring AS ( -- Use linear referencing to clip axis between distance marks SELECT ST_LineSubstring(