Package org.n52.shetland.ogc.om.values
Class GeometryValue
- java.lang.Object
-
- org.n52.shetland.ogc.gml.AbstractGML
-
- org.n52.shetland.ogc.gml.AbstractGeometry
-
- org.n52.shetland.ogc.om.values.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 Summary
Constructors Constructor Description GeometryValue()GeometryValue(org.locationtech.jts.geom.Geometry value)construcorGeometryValue(AbstractGeometry abstractGeometry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)StringgetUnit()Get the unit of measureUoMgetUnitObject()Get the unit of measure objectorg.locationtech.jts.geom.GeometrygetValue()Get the measurement valuebooleanisSetValue()Check whether the value is setvoidsetUnit(String unit)Set the unit of measureGeometryValuesetUnit(UoM unit)Set the unit of measure objectGeometryValuesetValue(org.locationtech.jts.geom.Geometry value)Set the measurment valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractGeometry
getGeometry, isSetGeometry, setGeometry
-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, equals, getDescription, getFirstName, getGmlId, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setName
-
-
-
-
Constructor Detail
-
GeometryValue
public GeometryValue()
-
GeometryValue
public GeometryValue(AbstractGeometry abstractGeometry)
-
GeometryValue
public GeometryValue(org.locationtech.jts.geom.Geometry value)
construcor- Parameters:
value- Geometry value
-
-
Method Detail
-
setValue
public GeometryValue setValue(org.locationtech.jts.geom.Geometry value)
Description copied from interface:ValueSet the measurment value
-
getValue
public org.locationtech.jts.geom.Geometry getValue()
Description copied from interface:ValueGet the measurement value
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure
-
setUnit
public GeometryValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<org.locationtech.jts.geom.Geometry>- Returns:
- Unit of measure
-
isSetValue
public boolean isSetValue()
Description copied from interface:ValueCheck whether the value is set- Specified by:
isSetValuein interfaceValue<org.locationtech.jts.geom.Geometry>- Returns:
true, if value is set
-
-