public class Geometry extends Object implements AutoCloseable
Geometry
is the root class of the hierarchy.
Geometry
is an abstract (non-instantiable) class.
The interpretation of the coordinates is subject to the coordinate reference systems associated to the geometry. All coordinates within a geometry object must be in the same coordinate reference systems. Each coordinate shall be unambiguously associated to a coordinate reference system either directly or through its containing geometry.
You can read more about the available geometries here.
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
Bounds |
getBounds()
Returns the bounds for the geometry object.
|
CoordinateReference |
getReference()
Returns the coordinate reference of the geometry.
|
public void close()
close
in interface AutoCloseable
@NotNull public CoordinateReference getReference()
@NotNull public Bounds getBounds() throws IllegalArgumentException
IllegalArgumentException
- if the bounds could not be computed. For example, when the geometry is defined by invalid points.