use of net.opengis.sos.x20.ObservationOfferingPropertyType in project arctic-sea by 52North.
the class CapabilitiesTypeDecoder method parseOffering.
private SosObservationOffering parseOffering(AbstractContentsType.Offering offering) {
SosObservationOffering observationOffering = new SosObservationOffering();
if (offering.getDomNode().hasChildNodes()) {
final Node node = XmlHelper.getNodeFromNodeList(offering.getDomNode().getChildNodes());
try {
ObservationOfferingPropertyType offeringType = ObservationOfferingPropertyType.Factory.parse(node);
ObservationOfferingType obsOffPropType = offeringType.getObservationOffering();
observationOffering.setOffering(parseOffering(obsOffPropType));
observationOffering.setProcedures(parseProcedure(obsOffPropType));
observationOffering.setProcedureDescriptionFormat(parseProcedureDescriptionFormat(obsOffPropType));
observationOffering.setObservableProperties(parseObservableProperties(obsOffPropType));
observationOffering.setRelatedFeatures(parseRelatedFeatures(obsOffPropType));
observationOffering.setObservedArea(parseObservedArea(obsOffPropType));
observationOffering.setPhenomenonTime(parsePhenomenonTime(obsOffPropType));
observationOffering.setResultTime(parseResultTime(obsOffPropType));
observationOffering.setResponseFormats(parseResponseFormats(obsOffPropType));
observationOffering.setObservationTypes(parseObservationTypes(obsOffPropType));
observationOffering.setFeatureOfInterestTypes(parseFeatureOfInterestTypes(obsOffPropType));
observationOffering.setExtensions(parseOfferingExtension(obsOffPropType));
} catch (XmlException | DecodingException ex) {
LOGGER.error(ex.getLocalizedMessage(), ex);
}
}
return observationOffering;
}
Aggregations