LengthIndexedLine ll = new LengthIndexedLine(g);
return ll.extractLine(start, end);
}
public static Geometry project(Geometry g, Geometry g2)
{
LengthIndexedLine ll = new LengthIndexedLine(g);
double index = ll.project(g2.getCoordinate());
Coordinate p = ll.extractPoint(index);
return g.getFactory().createPoint(p);
}