Class MultiLineString

    • Constructor Detail

      • MultiLineString

        public MultiLineString()
        Constructor
      • MultiLineString

        public MultiLineString​(List<LineString> lineStrings)
        Constructor
        Parameters:
        lineStrings - line string list
        Since:
        3.0.0
      • MultiLineString

        public MultiLineString​(MultiLineString multiLineString)
        Constructor
        Parameters:
        multiLineString - simple multi line string
    • Method Detail

      • fromCoordinates

        public static MultiLineString fromCoordinates​(List<List<Position>> coordinates)
        Create a multi line string from coordinates
        Parameters:
        coordinates - coordinates
        Returns:
        multi 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<List<Position>> getCoordinates()
        Returns coordinates as a GeoJSON Position list
        Returns:
        the coordinates
      • setCoordinates

        public void setCoordinates​(List<List<Position>> coordinates)
        Sets the coordinates from a GeoJSON Position list
        Parameters:
        coordinates - coordinates
        Since:
        3.0.0
      • getLineStrings

        public List<LineString> getLineStrings()
        Get the line strings
        Returns:
        list of line strings
        Since:
        3.0.0
      • setLineStrings

        public void setLineStrings​(List<LineString> lineStrings)
        Set the line strings
        Parameters:
        lineStrings - list of line strings
        Since:
        3.0.0
      • getMultiLineString

        public MultiLineString getMultiLineString()
        Get the simple features multi line string
        Returns:
        multi line string
        Since:
        3.0.0
      • setMultiLineString

        public void setMultiLineString​(MultiLineString multiLineString)
        Set the simple features multi line string
        Parameters:
        multiLineString - multi line string
        Since:
        3.0.0