Skip to content

Commit

Permalink
Add element definitions for om:phenomenonTime and observedProperty el…
Browse files Browse the repository at this point in the history
…ement in InsertResultTemplate - resultStructure.
  • Loading branch information
CarstenHollmann committed Aug 26, 2014
1 parent 2df5165 commit d38df7d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,10 @@ private void insertResultTemplate(String identifier, String procedureId, String
SweDataRecord dataRecord = new SweDataRecord();
SweTime sweTime = new SweTime();
sweTime.setUom(OmConstants.PHEN_UOM_ISO8601);
sweTime.setDefinition(OmConstants.PHENOMENON_TIME);
dataRecord.addField(new SweField("time", sweTime));
SweQuantity airTemp = new SweQuantity();
airTemp.setDefinition(obsPropId);
airTemp.setUom(TEMP_UNIT);
dataRecord.addField(new SweField("air_temperature", airTemp));
SosResultStructure resultStructure = new SosResultStructure();
Expand Down

0 comments on commit d38df7d

Please sign in to comment.