[postgis-devel] [PostGIS] #1873: ST_InterpolatePoint returns empty M value

PostGIS trac at osgeo.org
Mon Jun 18 05:42:20 PDT 2012


#1873: ST_InterpolatePoint returns empty M value
---------------------+------------------------------------------------------
 Reporter:  arho     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.1
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 If the interpolated point is directly on the line, M is 0:

 '''Example - point not on line, correct M value:'''
 SELECT ST_InterpolatePoint('LINESTRING M (0 0 0, 10 0 20)', 'POINT(5 5)');
  st_interpolatepoint
 ---------------------
                   10

 '''Example - point on line, M value is 0:'''
 SELECT ST_InterpolatePoint('LINESTRING M (0 0 0, 10 0 20)', 'POINT(5 0)');
  st_interpolatepoint
 ---------------------
                    0

 '''Expected Result:''' 10


 '''Version information:'''
 POSTGIS="2.0.0 r9605" GEOS="3.3.2-CAPI-1.7.2" PROJ="Rel. 4.7.1, 23
 September 2009" GDAL="GDAL 1.9.0, released 2011/12/29" LIBXML="2.7.8"
 RASTER
 PostgreSQL 9.1.2 on i686-pc-linux-gnu, compiled by gcc-4.6.real (Debian
 4.6.2-4) 4.6.2, 32-bit

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1873>
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