Class MultiLineGeometry


public class MultiLineGeometry extends MultiGeometry
A multiline container.
  • Constructor Details

    • MultiLineGeometry

      public MultiLineGeometry(LineGeometryVector geometries)
      Constructs a MultiLineGeometry object from the vector of lines.
      Parameters:
      geometries - The vector of line geometries.
  • Method Details

    • getType

      public int getType()
      Description copied from class: Geometry
      Returns what kind of geometry this is.

      Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a
      scripting binding - matching on the wrapper's class name.
      Overrides:
      getType in class MultiGeometry
      Returns:
      The geometry type.
    • getGeometry

      public LineGeometry getGeometry(int index)
      Returns the line geometry at the specified index. Index must be between 0 and getGeometryCount (exclusive)
      Overrides:
      getGeometry in class MultiGeometry
      Parameters:
      index - The index of the line geometry.
      Returns:
      The line geometry at specified index.
      Throws:
      IndexOutOfBoundsException - If the index is out of range.