Hey Antony,
It doesn’t look like there is a geoscript method for this, but I do think that jts has the functions you need. In particular:
http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/linearref/LocationIndexedLine.html
I could be off here but the geoscript py code that would do this is:
from com.vividsolutions.jts.linearref import *
from geoscript.geom import *
l = LineString(…)
p = Point(…)
lineIndex = LocationIndexedLine(l)
location = lineIndex.project(p.coordinate)
closest = Point(location.getCoordinate(l))
Does that look right?--
--
You received this message because you are subscribed to the GeoScript mailing list.
To post to this group, send email to geos...@googlegroups.com
To unsubscribe from this group, send email to geoscript+...@googlegroups.com
Visit this group at http://groups.google.com/group/geoscript or see http://geoscript.org
---
You received this message because you are subscribed to the Google Groups "GeoScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoscript+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.