[postgis-tickets] [PostGIS] #3573: Operator <<->> incorrectly calculates m distance

PostGIS trac at osgeo.org
Tue Jun 7 06:51:27 PDT 2016


#3573: Operator <<->> incorrectly calculates m distance
----------------------+---------------------------
  Reporter:  dbaston  |      Owner:  pramsey
      Type:  defect   |     Status:  closed
  Priority:  medium   |  Milestone:  PostGIS 2.2.3
 Component:  postgis  |    Version:  2.2.x
Resolution:  fixed    |   Keywords:
----------------------+---------------------------
Description changed by dbaston:

Old description:

> When computing the m-distance between a point and a line, the m ordinate
> of the point is ignored.
>
> {{{
> SELECT 'POINT M (0 0 100000)'::geometry <<->> 'LINESTRING M (0 0 5, 0 1
> 6)'::geometry AS dist;
>  dist
> ------
>     5
>

> SELECT 'POINT M (0 0 1e9)'::geometry <<->> 'LINESTRING M (0 0 5, 0 1
> 6)'::geometry AS dist;
>  dist
> ------
>     5
> }}}

New description:

 When computing the m-distance between points and lines, the m ordinate of
 the first geometry is ignored.

 {{{
 SELECT 'POINT M (0 0 100000)'::geometry <<->> 'LINESTRING M (0 0 5, 0 1
 6)'::geometry AS dist;
  dist
 ------
     5


 SELECT 'POINT M (0 0 1e9)'::geometry <<->> 'LINESTRING M (0 0 5, 0 1
 6)'::geometry AS dist;
  dist
 ------
     5
 }}}

--

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3573#comment:2>
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