From 5244b30334f795ba423cd74994b3b7537509fa54 Mon Sep 17 00:00:00 2001 From: CarstenHollmann Date: Thu, 17 Sep 2015 16:07:26 +0200 Subject: [PATCH] This fix #322 - Add OM_SpatialObservation samplingGeometry as om:parameter to observation if available --- .../n52/sos/ds/hibernate/entities/values/AbstractValue.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hibernate/common/src/main/java/org/n52/sos/ds/hibernate/entities/values/AbstractValue.java b/hibernate/common/src/main/java/org/n52/sos/ds/hibernate/entities/values/AbstractValue.java index 59a96f4490..a38a65b1a1 100644 --- a/hibernate/common/src/main/java/org/n52/sos/ds/hibernate/entities/values/AbstractValue.java +++ b/hibernate/common/src/main/java/org/n52/sos/ds/hibernate/entities/values/AbstractValue.java @@ -150,6 +150,9 @@ public OmObservation addValuesToObservation(OmObservation observation, String re } observation.setResultTime(createResutlTime(getResultTime())); observation.setValidTime(createValidTime(getValidTimeStart(), getValidTimeEnd())); + if (hasSamplingGeometry()) { + observation.addParameter(createSpatialFilteringProfileParameter(getSamplingGeometry())); + } addValueSpecificDataToObservation(observation, responseFormat); addObservationValueToObservation(observation, value, responseFormat); return observation;