[postgis-devel] [PostGIS] #639: ST_Line_Interpolate_Point doesn't interpolate M-values

PostGIS trac at osgeo.org
Fri Oct 22 14:19:10 PDT 2010


#639: ST_Line_Interpolate_Point doesn't interpolate M-values
---------------------+------------------------------------------------------
 Reporter:  rkail    |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.4.3
Component:  postgis  |     Version:  1.4          
 Keywords:           |  
---------------------+------------------------------------------------------
 the documentation of ST_Line_Interpolate_Point states that "this function
 also interpolates M and Z values ".

 using the sample from the manual:


 {{{
 SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5))
 FROM (SELECT ST_GeomFromEWKT('LINESTRING(1 2 3, 4 5 6, 6 7 8)')
 as the_line) As foo;

 st_asewkt
 POINT(3.5 4.5 5.5)
 }}}



 is working. Using M-values:


 {{{
 SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5))
 FROM (SELECT ST_GeomFromEWKT('LINESTRINGM(1 2 3, 4 5 6, 6 7 8)')
  as the_line) As foo;

 st_asewkt
 POINTM(3.5 4.5 0)
 }}}


 returns 0 as m-value.

 btw, ST_Line_SubString works as expected, even if start and end have the
 same value.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/639>
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-devel mailing list