Package org.n52.shetland.inspire.omso
Class AbstractInspireObservation
java.lang.Object
org.n52.shetland.ogc.gml.AbstractGML
org.n52.shetland.ogc.gml.AbstractFeature
org.n52.shetland.ogc.om.OmObservation
org.n52.shetland.inspire.omso.AbstractInspireObservation
- All Implemented Interfaces:
HasDefaultEncoding<AbstractFeature>,ObservationParameterHelper<OmObservation>
- Direct Known Subclasses:
MultiPointObservation,PointObservation,PointTimeSeriesObservation,ProfileObservation,TrajectoryObservation
Abstract class for INSPIRE OM Specialised Observations
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionconstructorAbstractInspireObservation(OmObservation observation) constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckForFeatureGeometry(OmObservation observation) Check if theOmObservationhas a featureOfInterest with geometry valueprotected org.locationtech.jts.geom.GeometrygetGeometryFromFeature(OmObservation observation) Get the geometry value from the featureOfInterest of theOmObservationprotected org.locationtech.jts.geom.GeometrygetGeometryFromSamplingGeometry(OmObservation observation) Get the geometry value from the samplingGeometry (om:parameter) of theOmObservationMethods inherited from class org.n52.shetland.ogc.om.OmObservation
addParameter, addRelatedObservation, addRelatedObservations, addResultQuality, addResultQuality, addSpatialFilteringProfileParameter, checkForMerge, checkForMerge, cloneTemplate, cloneTemplate, cloneTemplate, convertSingleValueToMultiValue, copyTo, getAdditionalMergeIndicator, getDecimalSeparator, getDepthParameter, getGmlId, getHeightDepthParameter, getHeightParameter, getNoDataValue, getObservationConstellation, getObservationID, getParameter, getParameterHolder, getPhenomenonTime, getRelatedObservations, getResultQuality, getResultTime, getResultType, getSpatialFilteringProfileParameter, getTokenSeparator, getTupleSeparator, getValidTime, getValue, isSetAdditionalMergeIndicator, isSetDecimalSeparator, isSetDepthParameter, isSetHeightDepthParameter, isSetHeightParameter, isSetObservationID, isSetParameter, isSetPhenomenonTime, isSetRelatedObservations, isSetResultQuality, isSetResultTime, isSetResultType, isSetSpatialFilteringProfileParameter, isSetTokenSeparator, isSetTupleSeparator, isSetValidTime, isSetValue, isTemplateResultTime, mergeValues, mergeWithObservation, mergeWithObservation, removeSpatialFilteringProfileParameter, setAdditionalMergeIndicator, setDecimalSeparator, setNoDataValue, setObservationConstellation, setObservationID, setParameter, setRelatedObservations, setResultQuality, setResultTime, setResultType, setTokenSeparator, setTupleSeparator, setValidTime, setValueMethods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncodedMethods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, equals, getDescription, getFirstName, 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, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.om.ObservationParameterHelper
addCategoryParameter, addCategoryParameter, addCategoryParameter, addPlatformParameter, addPlatformParameter, addPlatformParameter, getCategoryParameter, getPlatformParameter, isSetCategoryParameter, isSetPlatformParameter, removeCategoryParameter, removeParameter, removePlatformParameter
-
Constructor Details
-
AbstractInspireObservation
public AbstractInspireObservation()constructor -
AbstractInspireObservation
constructor- Parameters:
observation-OmObservationto convert
-
-
Method Details
-
checkForFeatureGeometry
Check if theOmObservationhas a featureOfInterest with geometry value- Parameters:
observation-OmObservationto check- Returns:
true, if theOmObservationhas a featureOfInterest with geometry value
-
getGeometryFromFeature
Get the geometry value from the featureOfInterest of theOmObservation- Parameters:
observation- TheOmObservationto get the geometry from- Returns:
- The geometry
-
getGeometryFromSamplingGeometry
protected org.locationtech.jts.geom.Geometry getGeometryFromSamplingGeometry(OmObservation observation) Get the geometry value from the samplingGeometry (om:parameter) of theOmObservation- Parameters:
observation- TheOmObservationto get the geometry from- Returns:
- The geometry
-