[postgis-devel] [PostGIS] #1271: ST_Line_Locate_Point inaccurate closest point
PostGIS
trac at osgeo.org
Tue Nov 8 00:45:35 PST 2011
#1271: ST_Line_Locate_Point inaccurate closest point
---------------------+------------------------------------------------------
Reporter: strk | Owner: strk
Type: defect | Status: assigned
Priority: high | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Comment(by strk):
Oh.. wonder.
=# SELECT 'line_locate_point_1',
ST_line_locate_point('LINESTRING(709243.393033887
163969.752725768,708943.240904444 163974.593889146,708675.634380651
163981.832927298)', 'POINT(705780 15883)');
NOTICE: t:3, pa->npoints:3, end:(708943 163975)
Indeed "end" is _not_ the last point, but the second-last.
It's actually the endpoint of the first segment. I guess I should be using
"seg" rather than "t"
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1271#comment:4>
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