Class Geometry<S>

java.lang.Object
uk.ac.starlink.tfcat.TfcatObject
uk.ac.starlink.tfcat.Geometry<S>
Direct Known Subclasses:
Geometry.GeometryCollection, Geometry.LineString, Geometry.MultiLineString, Geometry.MultiPoint, Geometry.MultiPolygon, Geometry.Point, Geometry.Polygon

public abstract class Geometry<S> extends TfcatObject
Abstract superclass representing one of the seven typed Geometry objects defined in the TFCat specification. Instances will be one of the seven typed internal subclasses.
Since:
9 Feb 2022
Author:
Mark Taylor
  • Method Details

    • getShape

      public S getShape()
      Returns the coordinate information giving the content of this geometry.
      Returns:
      shape
    • purgeJson

      public void purgeJson()
      Description copied from class: TfcatObject
      Removes any reference to the original parsed JSON from this object. This may be useful for purposes of efficiency following a parse if the TFCat objects are to be long-lived.
      Overrides:
      purgeJson in class TfcatObject