Dear R-geo experts,
I am looking for a function that
(i) indicates whether a line segment falls inside a rectangle (i.e. crosses
the rectangle boundaries somewhere).
In addition I need to (ii) compute the orthogonal projection of a point onto
a line segment.

I searched packages sp and spatstat but was unable to find anything.

Thanks!

Markus Loecher

	[[alternative HTML version deleted]]


