public class MultiPolygon extends MultiSurface<Polygon>
| Constructor and Description |
|---|
MultiPolygon()
Constructor
|
MultiPolygon(boolean hasZ,
boolean hasM)
Constructor
|
MultiPolygon(List<Polygon> polygons)
Constructor
|
MultiPolygon(MultiPolygon multiPolygon)
Copy Constructor
|
MultiPolygon(Polygon polygon)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPolygon(Polygon polygon)
Add a polygon
|
void |
addPolygons(List<Polygon> polygons)
Add polygons
|
Geometry |
copy()
Copy the geometry
|
Polygon |
getPolygon(int n)
Returns the Nth polygon
|
List<Polygon> |
getPolygons()
Get the polygons
|
int |
numPolygons()
Get the number of polygons
|
void |
setPolygons(List<Polygon> polygons)
Set the polygons
|
addSurface, addSurfaces, getSurface, getSurfaces, numSurfaces, setSurfacesaddGeometries, addGeometry, equals, getAsGeometryCollection, getAsMultiCurve, getAsMultiLineString, getAsMultiPoint, getAsMultiPolygon, getAsMultiSurface, getCollectionType, getGeometries, getGeometry, hashCode, isEmpty, isMultiCurve, isMultiLineString, isMultiPoint, isMultiPolygon, isMultiSurface, isSimple, numGeometries, setGeometriesgetCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasuredpublic MultiPolygon()
public MultiPolygon(boolean hasZ,
boolean hasM)
hasZ - has zhasM - has mpublic MultiPolygon(List<Polygon> polygons)
polygons - list of polygonspublic MultiPolygon(Polygon polygon)
polygon - polygonpublic MultiPolygon(MultiPolygon multiPolygon)
multiPolygon - multi polygon to copypublic void setPolygons(List<Polygon> polygons)
polygons - polygonspublic void addPolygon(Polygon polygon)
polygon - polygonpublic void addPolygons(List<Polygon> polygons)
polygons - polygonspublic int numPolygons()
public Polygon getPolygon(int n)
n - nth polygon to returnpublic Geometry copy()
copy in class GeometryCollection<Polygon>Copyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.