Class SubstringLine


  • public class SubstringLine
    extends java.lang.Object
    Author:
    P070518
    • Constructor Summary

      Constructors 
      Constructor Description
      SubstringLine​(org.locationtech.jts.geom.LineString line)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.locationtech.jts.geom.LineString getSubstring​(double startDistance, double endDistance)  
      static org.locationtech.jts.geom.LineString getSubstring​(org.locationtech.jts.geom.LineString line, double startLength, double endLength)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubstringLine

        public SubstringLine​(org.locationtech.jts.geom.LineString line)
        Parameters:
        line - LineString; input a line geometry
    • Method Detail

      • getSubstring

        public static org.locationtech.jts.geom.LineString getSubstring​(org.locationtech.jts.geom.LineString line,
                                                                        double startLength,
                                                                        double endLength)
        Parameters:
        line - LineString; geometry
        startLength - double; start position
        endLength - double; end position
        Returns:
        the substring
      • getSubstring

        public org.locationtech.jts.geom.LineString getSubstring​(double startDistance,
                                                                 double endDistance)
        Parameters:
        startDistance - double; start position
        endDistance - double; end position
        Returns:
        LineString