[postgis-tickets] [PostGIS] #3151: Function ST_InterpolatePoint only works with LINESTRINGM

PostGIS trac at osgeo.org
Tue Jun 9 08:49:28 PDT 2015


#3151: Function ST_InterpolatePoint only works with LINESTRINGM
-------------------------------------------------+-------------------------
 Reporter:  mayonesa                             |      Owner:  pramsey
     Type:  defect                               |     Status:  new
 Priority:  low                                  |  Milestone:  PostGIS
                                                 |  2.1.8
Component:  postgis                              |    Version:  2.1.x
 Keywords:  ST_InterpolatePoint LINESTRINGM      |
  MULTILINESTRINGM                               |
-------------------------------------------------+-------------------------
 Hi to all,

 If I execute this query

 {{{
  SELECT
 ST_InterpolatePoint(geom,ST_Transform(ST_SetSRID(ST_MakePoint(-3.17287857984195,40.7322588249179),4326),3042))
  FROM roads as rc
  WHERE idvia = '666XX';
 }}}

 The result is

 {{{

 ERROR:  ST_InterpolatePoint: 1st argument isn't a line


 ********** Error **********

 ERROR: ST_InterpolatePoint: 1st argument isn't a line
 SQL state: XX000
 }}}

 Is there a way to workaround and transform MULTILINESTRINGM to LINESTRINGM
 without loosing the measure?

 Thanks a lot

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