Class MultiPolygonGeometry


public class MultiPolygonGeometry extends MultiGeometry
A multipolygon container.
  • Constructor Details

    • MultiPolygonGeometry

      public MultiPolygonGeometry(PolygonGeometryVector geometries)
      Constructs a MultiPolygonGeometry from the vector of polygons.
      Parameters:
      geometries - The vector of polygon 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 PolygonGeometry getGeometry(int index)
      Returns the polygon geometry at the specified index. Index must be between 0 and getGeometryCount (exclusive)
      Overrides:
      getGeometry in class MultiGeometry
      Parameters:
      index - The index of the polygon geometry.
      Returns:
      The polygon geometry at specified index.
      Throws:
      IndexOutOfBoundsException - If the index is out of range.