com.ibm.geolib.geom

Interface LineString

  • All Superinterfaces:
    java.lang.Cloneable, Curve, Geometry, java.lang.Iterable<Point>, Spatial
    All Known Subinterfaces:
    Line, LinearRing


    public interface LineString
    extends Curve, java.lang.Iterable<Point>
    Interface of a line String that is composed of point vertices
    • Method Detail

      • isSelfIntersecting

        boolean isSelfIntersecting()
        Returns:
        whether the lineString self-intersect
      • getNumberOfVertices

        int getNumberOfVertices()
        Returns:
        number of vertices in this line string
      • getVertices

        java.util.List<Point> getVertices()
        Returns:
        list of vertices of this line string
      • setVertices

        void setVertices(java.util.List<Point> vertices)
        Set the vertices of this line string to the given list of vertices.
        Parameters:
        vertices -
      • addVertex

        void addVertex(Point point)
        Add a vertex to the end of this line string.4
        Parameters:
        point - to be added
      • getFretchetDistance

        double getFretchetDistance(LineString otherLineString,
                                 LengthUnit units)
        Get the fretchet distance from the other line string
        Parameters:
        otherLineString -
        Returns:
        the fretchet distance from otherLineString
      • getDynamicTimeWarpingDistance

        double getDynamicTimeWarpingDistance(LineString otherLineString,
                                           LengthUnit units)
        Get the fretchet distance from the other line string
        Parameters:
        otherLineString -
        Returns:
        the fretchet distance from otherLineString

© Copyright IBM 2016