[postgis-tickets] [PostGIS] #2645: ST_LineInterpolatePoint incorrect output for vertical line

PostGIS trac at osgeo.org
Tue Feb 18 00:21:20 PST 2014


#2645: ST_LineInterpolatePoint incorrect output for vertical line
------------------------------+---------------------------------------------
 Reporter:  bencaradocdavies  |       Owner:  pramsey      
     Type:  defect            |      Status:  new          
 Priority:  high              |   Milestone:  PostGIS 2.1.2
Component:  postgis           |     Version:  2.1.x        
 Keywords:                    |  
------------------------------+---------------------------------------------

Comment(by bencaradocdavies):

 Lines aligned with the X or Y axis also appear to be interpolated
 correctly:
 {{{
 $ select st_asewkt(st_lineinterpolatepoint(st_geomfromewkt('LINESTRING(0 0
 0, 1 0 0)'), 0.5));
    st_asewkt
 ----------------
  POINT(0.5 0 0)
 (1 row)

 $ select st_asewkt(st_lineinterpolatepoint(st_geomfromewkt('LINESTRING(0 0
 0, 0 1 0)'), 0.5));
    st_asewkt
 ----------------
  POINT(0 0.5 0)
 (1 row)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2645#comment:1>
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