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
|
protected Geometry(GeometryType geometryType, boolean hasZ, boolean hasM)
geometryType - geometry typehasZ - has zhasM - has mpublic GeometryType getGeometryType()
public boolean hasZ()
public boolean is3D()
hasZ()public boolean hasM()
public 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 © 2019 National Geospatial-Intelligence Agency. All rights reserved.