Search in sources :

Example 1 with ObservationFormatDescriptorType

use of net.opengis.sosgda.x20.ObservationFormatDescriptorType 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;
}
Also used : ObservationFormatDescriptorType(net.opengis.sosgda.x20.ObservationFormatDescriptorType) ObservationFormatDescriptor(org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ObservationFormatDescriptor) ProcedureDescriptionFormatDescriptor(org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ProcedureDescriptionFormatDescriptor) ProcedureDescriptionFormatDescriptor(org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ProcedureDescriptionFormatDescriptor) ObservationFormatDescriptor(org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ObservationFormatDescriptor) FormatDescriptor(org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.FormatDescriptor)

Aggregations

ObservationFormatDescriptorType (net.opengis.sosgda.x20.ObservationFormatDescriptorType)1 FormatDescriptor (org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.FormatDescriptor)1 ObservationFormatDescriptor (org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ObservationFormatDescriptor)1 ProcedureDescriptionFormatDescriptor (org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.ProcedureDescriptionFormatDescriptor)1