use of org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ProcedureDescriptionFormatDescriptor in project arctic-sea by 52North.
the class GetDataAvailabilityResponseDecoder method createFormatDescriptor.
private FormatDescriptor createFormatDescriptor(FormatDescriptorType fdt) {
if (fdt != null) {
String procDescFormatDescriptor = fdt.getProcedureDescriptionFormatDescriptor().getProcedureDescriptionFormat();
Set<ObservationFormatDescriptor> obsFormDescs = Sets.newHashSet();
for (ObservationFormatDescriptorType obsFormatDescriptor : fdt.getObservationFormatDescriptorArray()) {
obsFormDescs.add(new ObservationFormatDescriptor(obsFormatDescriptor.getResponseFormat(), Sets.newHashSet(obsFormatDescriptor.getObservationTypeArray())));
}
return new FormatDescriptor(new ProcedureDescriptionFormatDescriptor(procDescFormatDescriptor), obsFormDescs);
}
return null;
}
Aggregations