Class LineString

    • Method Detail

      • of

        public static LineString of​(Point... points)
        Creates a LineString from the given points.
        Parameters:
        points - Sequence of Point composed at least by 2 points.
        Returns:
        a LineString
      • of

        public static LineString of​(Iterable<Point> points)
        Creates a LineString from the given points.
        Parameters:
        points - Iterable of Point at least by 2 points.
        Returns:
        a LineString
      • of

        public static LineString of​(Stream<Point> points)
        Creates a LineString from the given points.
        Parameters:
        points - Iterable of Point at least by 2 points.
        Returns:
        a LineString
      • type

        public Geometry.Type type()
        Description copied from interface: Geometry
        Returns the Geometry type.
        Returns:
        Type
      • isClosed

        public boolean isClosed()
        Return if this LineString: - Is composed by at least 4 points - The first and the last Point are the same.

        For more details @see http://geojson.org/geojson-spec.html#linestring.

        Returns:
        true if this Linestring is closed false otherwise.