Class LineString

    • Constructor Detail

      • LineString

        public LineString()
        Constructor
      • LineString

        public LineString​(List<Point> points)
        Constructor
        Parameters:
        points - list of points
        Since:
        3.0.0
      • LineString

        public LineString​(LineString lineString)
        Constructor
        Parameters:
        lineString - simple line string
    • Method Detail

      • fromCoordinates

        public static LineString fromCoordinates​(List<Position> coordinates)
        Create a line string from coordinates
        Parameters:
        coordinates - coordinates
        Returns:
        line string
        Since:
        3.0.0
      • getGeometry

        public Geometry getGeometry()
        Get the simple geometry
        Specified by:
        getGeometry in class Geometry
        Returns:
        simple geometry
      • getCoordinates

        public List<Position> getCoordinates()
        Get the coordinates
        Returns:
        list of positions
      • setCoordinates

        public void setCoordinates​(List<Position> coordinates)
        Set the coordinates
        Parameters:
        coordinates - coordinates
      • getLineString

        public LineString getLineString()
        Get the simple features line string
        Returns:
        line string
        Since:
        3.0.0
      • setLineString

        public void setLineString​(LineString lineString)
        Set the simple features line string
        Parameters:
        lineString - line string
        Since:
        3.0.0