Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4702 closed defect (fixed)

Legacy ST_Locate_Between_Measures is wrong

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 3.0.2
Component: postgis Version: 3.0.x
Keywords: Cc:

Description

diff --git a/postgis/legacy.sql.in b/postgis/legacy.sql.in
index 6a720dda0..d750541e8 100644
--- a/postgis/legacy.sql.in
+++ b/postgis/legacy.sql.in
@@ -2056,7 +2056,7 @@ CREATE OR REPLACE FUNCTION ST_line_locate_point(geom1 geometry, geom2 geometry)
 -- Deprecation in 2.0.0 replaced by ST_LocateBetween
 CREATE OR REPLACE FUNCTION ST_locate_between_measures(geometry, float8, float8)
 	RETURNS geometry AS
-	'SELECT ST_LocateBetween($1, $2, $2);'
+	'SELECT ST_LocateBetween($1, $2, $3);'
 	LANGUAGE 'sql' IMMUTABLE STRICT;
 
 -- Availability: 1.2.2

Change History (2)

comment:1 by Paul Ramsey <pramsey@…>, 4 years ago

Resolution: fixed
Status: newclosed

In 10c94128/git:

Legacy ST_Locate_Between_Measures is wrong, Closes #4702

comment:2 by Paul Ramsey <pramsey@…>, 4 years ago

In 957ee5d5/git:

Legacy ST_Locate_Between_Measures is wrong, Closes #4702

Note: See TracTickets for help on using tickets.