forked from hans/Nominatim
replace ST_Line_Interpolate_Point with ST_LineInterpolatePoint (DB adaption needed)
Name of function was changed in postgis 2.1 and now prints ugly deprecation warnings. For older versions of postgis, function will be renamed to the new name during the setup of the DB. To update existing databases with postgis < 2.1 run: ALTER FUNCTION st_line_interpolate_point(geometry, double precision) RENAME TO ST_LineInterpolatePoint and then reinstall the SQL functions: ./utils/setup.php --create-functions --enable-diff-updates --create-partition-functions
This commit is contained in:
@@ -327,9 +327,9 @@ BEGIN
|
||||
RETURN;
|
||||
END IF;
|
||||
|
||||
p1 := ST_Line_Interpolate_Point(line,0);
|
||||
p2 := ST_Line_Interpolate_Point(line,0.5);
|
||||
p3 := ST_Line_Interpolate_Point(line,1);
|
||||
p1 := ST_LineInterpolatePoint(line,0);
|
||||
p2 := ST_LineInterpolatePoint(line,0.5);
|
||||
p3 := ST_LineInterpolatePoint(line,1);
|
||||
|
||||
-- start
|
||||
IF in_partition = -partition- THEN
|
||||
|
||||
Reference in New Issue
Block a user