[postgis-tickets] [PostGIS] #4702: Legacy ST_Locate_Between_Measures is wrong

PostGIS trac at osgeo.org
Mon Jun 8 09:28:34 PDT 2020


#4702: Legacy ST_Locate_Between_Measures is wrong
---------------------+---------------------------
 Reporter:  pramsey  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.0.2
Component:  postgis  |    Version:  3.0.x
 Keywords:           |
---------------------+---------------------------
 {{{
 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
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4702>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list