Interface LineString

  • All Superinterfaces:
    Geometry

    public interface LineString
    extends Geometry
    The driver-side representation for DSE's LineString.

    This is a curve in a two-dimensional XY-plane, represented by a set of points (with linear interpolation between them).

    The default implementation returned by the driver is immutable.

    • Method Detail

      • fromWellKnownText

        @NonNull
        static LineString fromWellKnownText​(@NonNull
                                            String source)
        Creates a line string from its Well-known Text (WKT) representation.
        Parameters:
        source - the Well-known Text representation to parse.
        Returns:
        the line string represented by the WKT.
        Throws:
        IllegalArgumentException - if the string does not contain a valid Well-known Text representation.
      • fromWellKnownBinary

        @NonNull
        static LineString fromWellKnownBinary​(@NonNull
                                              ByteBuffer source)
        Creates a line string from its Well-known Binary (WKB) representation.
        Parameters:
        source - the Well-known Binary representation to parse.
        Returns:
        the line string represented by the WKB.
        Throws:
        IllegalArgumentException - if the provided ByteBuffer does not contain a valid Well-known Binary representation.
      • fromPoints

        @NonNull
        static LineString fromPoints​(@NonNull
                                     Point p1,
                                     @NonNull
                                     Point p2,
                                     @NonNull
                                     Point... pn)
        Creates a line string from two or more points.
      • getPoints

        @NonNull
        List<Point> getPoints()