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:
Sarah Hoffmann
2014-02-06 08:04:42 +01:00
parent edc5733715
commit e0b1e3b66d
4 changed files with 12 additions and 8 deletions

View File

@@ -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