[geos-devel] clipping a line between 2 points

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Oct 9 09:39:39 EDT 2007


Hi list,

I am looking for a function which can do the following:

-clip a line between 2 points. So basically I want the line segment between
two points to be returned.

Is there such a thing in GEOS?

Another question, what if the points don't exactly lie on the line, is there
an algorithm for doing the same thing in that situation (i.e. first snap the
points to the line, and then clip)?

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl








More information about the geos-devel mailing list