public class MultiPolygon extends MultiSurface<Polygon>
| Constructor and Description |
|---|
MultiPolygon()
Constructor
|
MultiPolygon(boolean hasZ,
boolean hasM)
Constructor
|
MultiPolygon(MultiPolygon multiPolygon)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPolygon(Polygon polygon)
Add a polygon
|
Geometry |
copy()
Copy the geometry
|
List<Polygon> |
getPolygons()
Get the polygons
|
int |
numPolygons()
Get the number of polygons
|
void |
setPolygons(List<Polygon> polygons)
Set the polygons
|
addGeometry, getGeometries, numGeometries, setGeometriesgetGeometryType, getWkbCode, hasM, hasZpublic MultiPolygon()
public MultiPolygon(boolean hasZ,
boolean hasM)
hasZ - has zhasM - has mpublic MultiPolygon(MultiPolygon multiPolygon)
multiPolygon - multi polygon to copypublic void setPolygons(List<Polygon> polygons)
polygons - polygonspublic void addPolygon(Polygon polygon)
polygon - polygonpublic int numPolygons()
public Geometry copy()
copy in class GeometryCollection<Polygon>Copyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.