public abstract class Geometry extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Geometry(GeometryType geometryType,
boolean hasZ,
boolean hasM)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract Geometry |
copy()
Copy the geometry
|
boolean |
equals(Object obj) |
Point |
getCentroid()
Get the mathematical centroid point of a 2 dimensional representation of
the Geometry (balancing point of a 2d cutout of the geometry).
|
int |
getDimension()
Get the inherent dimension (0, 1, or 2) for this Geometry
|
GeometryEnvelope |
getEnvelope()
Get the minimum bounding box for this Geometry
|
GeometryType |
getGeometryType()
Get the geometry type
|
int |
hashCode() |
boolean |
hasM()
Does the geometry have m coordinates
|
boolean |
hasZ()
Does the geometry have z coordinates
|
boolean |
is3D()
Does the geometry have z coordinates
|
abstract boolean |
isEmpty()
Is the Geometry empty
|
boolean |
isMeasured()
Does the geometry have m coordinates.
|
abstract boolean |
isSimple()
Determine if this Geometry has no anomalous geometric points, such as
self intersection or self tangency
|
void |
setHasM(boolean hasM)
Set if the geometry has m coordinates
|
void |
setHasZ(boolean hasZ)
Set if the geometry has z coordinates
|
protected void |
updateZM(Geometry geometry)
Update currently false hasZ and hasM values using the provided geometry
|
protected Geometry(GeometryType geometryType, boolean hasZ, boolean hasM)
geometryType - geometry typehasZ - has zhasM - has mpublic GeometryType getGeometryType()
public boolean hasZ()
public void setHasZ(boolean hasZ)
hasZ - true if has z coordinatespublic boolean is3D()
hasZ()public boolean hasM()
public void setHasM(boolean hasM)
hasM - true if has m coordinatesprotected void updateZM(Geometry geometry)
geometry - geometrypublic boolean isMeasured()
hasM()public GeometryEnvelope getEnvelope()
public int getDimension()
public Point getCentroid()
Point.getZ() and Point.getM() methods will
always return null.public abstract Geometry copy()
public abstract boolean isEmpty()
public abstract boolean isSimple()
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.