use of com.revolsys.geometry.linearref.LengthIndexedLine in project com.revolsys.open by revolsys.
the class LinearReferencingFunctions method project.
public static Geometry project(final Geometry g, final Geometry g2) {
final LengthIndexedLine ll = new LengthIndexedLine(g);
final double index = ll.project(g2.getPoint());
final Point p = ll.extractPoint(index);
return g.getGeometryFactory().point(p);
}
Aggregations