Search in sources :

Example 1 with GeometryObservationDocument

use of net.opengis.om.x10.GeometryObservationDocument in project arctic-sea by 52North.

the class OmEncoderv100 method createGeometryObservation.

private XmlObject createGeometryObservation(OmObservation sosObservation, EncodingContext additionalValues) throws EncodingException {
    GeometryObservationDocument xbGeometryObservationDoc = GeometryObservationDocument.Factory.newInstance(getXmlOptions());
    GeometryObservationType xbObs = xbGeometryObservationDoc.addNewGeometryObservation();
    addValuesToObservation(xbObs, sosObservation, additionalValues);
    addSingleObservationToResult(xbObs.addNewResult(), sosObservation);
    return xbGeometryObservationDoc;
}
Also used : GeometryObservationType(net.opengis.om.x10.GeometryObservationType) GeometryObservationDocument(net.opengis.om.x10.GeometryObservationDocument)

Aggregations

GeometryObservationDocument (net.opengis.om.x10.GeometryObservationDocument)1 GeometryObservationType (net.opengis.om.x10.GeometryObservationType)1