Class PreparedLineString

  • All Implemented Interfaces:
    PreparedGeometry

    public class PreparedLineString
    extends java.lang.Object
    A prepared version for Lineal geometries.

    Instances of this class are thread-safe.

    Author:
    mbdavis
    • Constructor Detail

      • PreparedLineString

        public PreparedLineString​(Lineal line)
    • Method Detail

      • getRepresentativePoints

        public java.util.List getRepresentativePoints()
        Gets the list of representative points for this geometry. One vertex is included for every component of the geometry (i.e. including one for every ring of polygonal geometries). Do not modify the returned list!
        Returns:
        a List of Coordinate
      • isAnyTargetComponentInTest

        public boolean isAnyTargetComponentInTest​(Geometry testGeom)
        Tests whether any representative of the target geometry intersects the test geometry. This is useful in A/A, A/L, A/P, L/P, and P/P cases.
        Parameters:
        testGeom - the test geometry
        Returns:
        true if any component intersects the areal test geometry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object