Class LocatePoint


  • public class LocatePoint
    extends Object
    Computes the location of the point a given distance along a LineString.
    • Constructor Detail

      • LocatePoint

        public LocatePoint​(org.locationtech.jts.geom.LineString line,
                           double distance)
    • Method Detail

      • pointAlongSegment

        public static org.locationtech.jts.geom.Coordinate pointAlongSegment​(org.locationtech.jts.geom.Coordinate p0,
                                                                             org.locationtech.jts.geom.Coordinate p1,
                                                                             double distance)
      • pointAlongLine

        public static org.locationtech.jts.geom.Coordinate pointAlongLine​(org.locationtech.jts.geom.LineString line,
                                                                          double distance)
      • getPoint

        public org.locationtech.jts.geom.Coordinate getPoint()
      • getIndex

        public int getIndex()
        Returns the index of the segment containing the computed point.
        Returns:
        the index