Package mil.nga.sf

Class MultiLineString

  • All Implemented Interfaces:
    Serializable

    public class MultiLineString
    extends MultiCurve<LineString>
    A restricted form of MultiCurve where each Curve in the collection must be of type LineString.
    Author:
    osbornb
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiLineString

        public MultiLineString()
        Constructor
      • MultiLineString

        public MultiLineString​(boolean hasZ,
                               boolean hasM)
        Constructor
        Parameters:
        hasZ - has z
        hasM - has m
      • MultiLineString

        public MultiLineString​(List<LineString> lineStrings)
        Constructor
        Parameters:
        lineStrings - list of line strings
      • MultiLineString

        public MultiLineString​(LineString lineString)
        Constructor
        Parameters:
        lineString - line string
      • MultiLineString

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

      • getLineStrings

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

        public void setLineStrings​(List<LineString> lineStrings)
        Set the line strings
        Parameters:
        lineStrings - line strings
      • addLineString

        public void addLineString​(LineString lineString)
        Add a line string
        Parameters:
        lineString - line string
      • addLineStrings

        public void addLineStrings​(List<LineString> lineStrings)
        Add line strings
        Parameters:
        lineStrings - line strings
      • numLineStrings

        public int numLineStrings()
        Get the number of line strings
        Returns:
        number of line strings
      • getLineString

        public LineString getLineString​(int n)
        Returns the Nth line string
        Parameters:
        n - nth line string to return
        Returns:
        line string