use of net.opengis.sos.x20.GetObservationByIdType in project arctic-sea by 52North.
the class SosDecoderv20 method parseGetObservationById.
private OwsServiceRequest parseGetObservationById(final GetObservationByIdDocument getObsByIdDoc) throws DecodingException {
final GetObservationByIdRequest getObsByIdRequest = new GetObservationByIdRequest();
final GetObservationByIdType getObsByIdType = getObsByIdDoc.getGetObservationById();
getObsByIdRequest.setService(getObsByIdType.getService());
getObsByIdRequest.setVersion(getObsByIdType.getVersion());
getObsByIdRequest.setObservationIdentifier(Arrays.asList(getObsByIdType.getObservationArray()));
getObsByIdRequest.setExtensions(parseExtensibleRequest(getObsByIdType));
return getObsByIdRequest;
}
use of net.opengis.sos.x20.GetObservationByIdType in project arctic-sea by 52North.
the class GetObservationByIdRequestEncoder method create.
@Override
protected XmlObject create(GetObservationByIdRequest request) throws EncodingException {
GetObservationByIdDocument doc = GetObservationByIdDocument.Factory.newInstance(getXmlOptions());
GetObservationByIdType gobit = doc.addNewGetObservationById();
addService(gobit, request);
addVersion(gobit, request);
addExtension(gobit, request);
addObservationIds(gobit, request);
return doc;
}
Aggregations