# HG changeset patch # User Sascha L. Teichmann # Date 1546974099 -3600 # Node ID 837d12b49dfdc952a391e4f564041597976e6494 # Parent a005816388b7a96b4537742b35647f74c980bb7f Fixed fix for ISRSrange_area() function. diff -r a005816388b7 -r 837d12b49dfd schema/isrs_functions.sql --- 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(