Class GeneralSTObject

    • Constructor Detail

      • GeneralSTObject

        public GeneralSTObject​(org.joda.time.Interval timePeriod,
                               org.locationtech.jts.geom.Geometry geometry)
    • Method Detail

      • getCentroid

        public org.locationtech.jts.geom.Point getCentroid()
        Description copied from interface: ISpatialTemporalObj
        Computes the centroid of the envelope of this Geometry.
        Specified by:
        getCentroid in interface ISpatialTemporalObj
        Returns:
        The centroid of the envelope of this Geometry.
      • getEnvelope

        public org.locationtech.jts.geom.Envelope getEnvelope()
        Description copied from interface: ISpatialTemporalObj
        Gets a Geometry representing the envelope (bounding box) of this Geometry.
        Specified by:
        getEnvelope in interface ISpatialTemporalObj
        Returns:
        a Geometry representing the envelope of this Geometry
      • getGeometry

        public org.locationtech.jts.geom.Geometry getGeometry()
        Description copied from interface: ISpatialTemporalObj
        Gets the Geometry of this object, which is a representation of a planar, linear vector geometry.
        Specified by:
        getGeometry in interface ISpatialTemporalObj
        Returns:
        the Geometry of this object.
      • getVolume

        public double getVolume()
        Description copied from interface: ISpatialTemporalObj
        Gets the area of this Geometry multiplied by the duration of this object. Areal Geometries have a non-zero area.
        Specified by:
        getVolume in interface ISpatialTemporalObj
        Returns:
        The computed volume of this spatio-temporal object.