Class Geometry

java.lang.Object
com.luciad.geometries.Geometry
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
Bounds, Curve, ExtrudedGeometry, MultiGeometry, Point, Surface

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.

  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getReference Link icon

      @NotNull public CoordinateReference getReference()
      Returns the coordinate reference of the geometry.
      Returns:
      the coordinate reference of the geometry.
    • getBounds Link icon

      @NotNull public Bounds getBounds() throws IllegalArgumentException
      Returns the bounds for the geometry object.
      Returns:
      the bounds for the geometry object.
      Throws:
      IllegalArgumentException - if the bounds could not be computed. For example, when the geometry is defined by invalid points.