public class

MultiPolygonGeometry

extends MultiGeometry
java.lang.Object
   ↳ com.carto.geometry.Geometry
     ↳ com.carto.geometry.MultiGeometry
       ↳ com.carto.geometry.MultiPolygonGeometry

Class Overview

A multipolygon container.

Summary

Public Constructors
MultiPolygonGeometry(PolygonGeometryVector geometries)
Constructs a MultiPolygonGeometry from the vector of polygons.
Public Methods
synchronized void delete()
PolygonGeometry getGeometry(int index)
Returns the polygon geometry at the specified index.
[Expand]
Inherited Methods
From class com.carto.geometry.MultiGeometry
From class com.carto.geometry.Geometry
From class java.lang.Object

Public Constructors

public MultiPolygonGeometry (PolygonGeometryVector geometries)

Constructs a MultiPolygonGeometry from the vector of polygons.

Parameters
geometries The vector of polygon geometries.

Public Methods

public synchronized void delete ()

public PolygonGeometry getGeometry (int index)

Returns the polygon geometry at the specified index. Index must be between 0 and getGeometryCount (exclusive)

Parameters
index The index of the polygon geometry.
Returns
  • The polygon geometry at specified index.
Throws
IndexOutOfBoundsException If the index is out of range.