T - curve typepublic class CurvePolygon<T extends Curve> extends Surface
| Modifier | Constructor and Description |
|---|---|
|
CurvePolygon()
Constructor
|
|
CurvePolygon(boolean hasZ,
boolean hasM)
Constructor
|
|
CurvePolygon(CurvePolygon<T> curvePolygon)
Copy Constructor
|
protected |
CurvePolygon(GeometryType type,
boolean hasZ,
boolean hasM)
Constructor
|
|
CurvePolygon(List<T> rings)
Constructor
|
|
CurvePolygon(T ring)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRing(T ring)
Add a ring
|
void |
addRings(List<T> rings)
Add rings
|
Geometry |
copy()
Copy the geometry
|
boolean |
equals(Object obj) |
T |
getExteriorRing()
Get the exterior ring
|
T |
getInteriorRing(int n)
Returns the Nth interior ring for this Polygon
|
T |
getRing(int n)
Returns the Nth ring where the exterior ring is at 0, interior rings
begin at 1
|
List<T> |
getRings()
Get the rings
|
int |
hashCode() |
boolean |
isEmpty()
Is the Geometry empty
|
boolean |
isSimple()
Determine if this Geometry has no anomalous geometric points, such as
self intersection or self tangency
|
int |
numInteriorRings()
Get the number of interior rings
|
int |
numRings()
Get the number of rings including exterior and interior
|
void |
setRings(List<T> rings)
Set the rings
|
getCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZMpublic CurvePolygon()
public CurvePolygon(boolean hasZ,
boolean hasM)
hasZ - has zhasM - has mpublic CurvePolygon(T ring)
ring - ringpublic CurvePolygon(CurvePolygon<T> curvePolygon)
curvePolygon - curve polygon to copyprotected CurvePolygon(GeometryType type, boolean hasZ, boolean hasM)
type - geometry typehasZ - has zhasM - has mpublic void addRing(T ring)
ring - ringpublic int numRings()
public T getRing(int n)
n - nth ring to returnpublic T getExteriorRing()
public int numInteriorRings()
public T getInteriorRing(int n)
n - interior ring numberpublic Geometry copy()
public boolean isEmpty()
public boolean isSimple()
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.