Class GeometryValue

All Implemented Interfaces:
Value<org.locationtech.jts.geom.Geometry>

public class GeometryValue extends AbstractGeometry implements Value<org.locationtech.jts.geom.Geometry>
Geometry measurement representation for observation
Since:
1.0.0
  • Constructor Details

    • GeometryValue

      public GeometryValue()
    • GeometryValue

      public GeometryValue(AbstractGeometry abstractGeometry)
    • GeometryValue

      public GeometryValue(org.locationtech.jts.geom.Geometry value)
      construcor
      Parameters:
      value - Geometry value
  • Method Details

    • setValue

      public GeometryValue setValue(org.locationtech.jts.geom.Geometry value)
      Description copied from interface: Value
      Set the measurment value
      Specified by:
      setValue in interface Value<org.locationtech.jts.geom.Geometry>
      Parameters:
      value - Value to set
    • getValue

      public org.locationtech.jts.geom.Geometry getValue()
      Description copied from interface: Value
      Get the measurement value
      Specified by:
      getValue in interface Value<org.locationtech.jts.geom.Geometry>
      Returns:
      Measurement value
    • setUnit

      public void setUnit(String unit)
      Description copied from interface: Value
      Set the unit of measure
      Specified by:
      setUnit in interface Value<org.locationtech.jts.geom.Geometry>
      Parameters:
      unit - Unit of measure
    • setUnit

      public GeometryValue setUnit(UoM unit)
      Description copied from interface: Value
      Set the unit of measure object
      Specified by:
      setUnit in interface Value<org.locationtech.jts.geom.Geometry>
      Parameters:
      unit - Unit of measure
    • getUnit

      public String getUnit()
      Description copied from interface: Value
      Get the unit of measure
      Specified by:
      getUnit in interface Value<org.locationtech.jts.geom.Geometry>
      Returns:
      Unit of measure
    • getUnitObject

      public UoM getUnitObject()
      Description copied from interface: Value
      Get the unit of measure object
      Specified by:
      getUnitObject in interface Value<org.locationtech.jts.geom.Geometry>
      Returns:
      Unit of measure
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isSetValue

      public boolean isSetValue()
      Description copied from interface: Value
      Check whether the value is set
      Specified by:
      isSetValue in interface Value<org.locationtech.jts.geom.Geometry>
      Returns:
      true, if value is set
    • accept

      public <X, E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E
      Specified by:
      accept in interface Value<org.locationtech.jts.geom.Geometry>
      Throws:
      E