[geos-devel] Questions about linear referencing
Sean Gillies
sean.gillies at gmail.com
Mon Feb 1 05:04:39 EST 2010
The GEOSProject function returns a numerical value when passed a line
string and a point not on the line. If the point is beyond (in some
sense) the line's starting point, you get 0.0 (normalized). If the
point is past (in some sense) the line's end point, you get 1.0
(normalized to the line's length). If the point is otherwise off of
the line but not past one of its ends in that sense, you get a value
between 0 and 1.
Is this intended? The behavior seems like it could get rather
unpredictable for anything other than a perfectly straight line.
--
Sean
More information about the geos-devel
mailing list