adapt frontend to new interpolation table layout

This commit is contained in:
Sarah Hoffmann
2022-01-26 21:24:24 +01:00
parent 4b28b4fed4
commit 6b89624f33
4 changed files with 14 additions and 19 deletions

View File

@@ -405,7 +405,7 @@ class PlaceLookup
$sSQL .= ' CASE '; // interpolate the housenumbers here
$sSQL .= ' WHEN startnumber != endnumber ';
$sSQL .= ' THEN ST_LineInterpolatePoint(linegeo, (housenumber_for_place-startnumber::float)/(endnumber-startnumber)::float) ';
$sSQL .= ' ELSE ST_LineInterpolatePoint(linegeo, 0.5) ';
$sSQL .= ' ELSE linegeo ';
$sSQL .= ' END as centroid, ';
$sSQL .= ' parent_place_id, ';
$sSQL .= ' housenumber_for_place ';