[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.1-16-g10c9412

git at osgeo.org git at osgeo.org
Mon Jun 8 09:29:51 PDT 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-3.0 has been updated
       via  10c94128723a8773481d5e6eeca2215a78bb151a (commit)
      from  0717e6c8de1101548e860989bdfc7d6c7f1690a2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 10c94128723a8773481d5e6eeca2215a78bb151a
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jun 8 09:29:45 2020 -0700

    Legacy ST_Locate_Between_Measures is wrong, Closes #4702

diff --git a/NEWS b/NEWS
index 5619c63..4b029d9 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ PostGIS 3.0.2
   - #4652, Fix several memory related bugs in ST_GeomFromGML (Raúl Marín)
   - #4661, Fix access to spatial_ref_sys with a non default schema (Raúl Marín)
   - #4670, ST_AddPoint: Fix bug when a positive position is requested (Raúl Marín)
+  - #4702, Legacy ST_Locate_Between_Measures is wrong (Kaplas80) 
 
 
 PostGIS 3.0.1
diff --git a/postgis/legacy.sql.in b/postgis/legacy.sql.in
index 6a720dd..d750541 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

-----------------------------------------------------------------------

Summary of changes:
 NEWS                  | 1 +
 postgis/legacy.sql.in | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list