use of org.n52.shetland.inspire.omso.TrajectoryObservation in project arctic-sea by 52North.
the class TrajectoryObservation method cloneTemplate.
@Override
public OmObservation cloneTemplate() {
SamplingFeature sf = new SamplingFeature(new CodeWithAuthority(""));
sf.setFeatureType(SfConstants.SAMPLING_FEAT_TYPE_SF_SAMPLING_CURVE);
getObservationConstellation().setFeatureOfInterest(sf);
if (isSetSpatialFilteringProfileParameter()) {
removeSpatialFilteringProfileParameter();
}
return cloneTemplate(new TrajectoryObservation());
}
use of org.n52.shetland.inspire.omso.TrajectoryObservation in project arctic-sea by 52North.
the class TrajectoryObservationTypeEncoderTest method createObservation.
private OmObservation createObservation() throws DecodingException, XmlException, IOException {
DateTime now = new DateTime(DateTimeZone.UTC);
TimeInstant resultTime = new TimeInstant(now);
TrajectoryObservation observation = new TrajectoryObservation();
observation.setObservationID("123");
OmObservationConstellation observationConstellation = new OmObservationConstellation();
observationConstellation.setFeatureOfInterest(new SamplingFeature(new CodeWithAuthority("feature", CODE_SPACE)));
OmObservableProperty observableProperty = new OmObservableProperty(OBSERVABLE_PROPERTY);
observationConstellation.setObservableProperty(observableProperty);
observationConstellation.addOffering(OFFERING);
Process procedure = createProcessFromFile();
observationConstellation.setProcedure(procedure);
observation.setObservationConstellation(observationConstellation);
observation.setResultTime(resultTime);
return observation;
}
Aggregations