waterml/src/main/java/ucar/nc2/ogc/om/NcOMObservationType.java
public static OMObservationType initOmObservation(OMObservationType omObservation,
            StationTimeSeriesFeature stationFeat, VariableSimpleIF dataVar) throws IOException {
        // @gml:id
        String id = MarshallingUtil.createIdForType(OMObservationType.class);
        omObservation.setId(id);

        // om:phenomenonTime
        NcTimeObjectPropertyType.initPhenomenonTime(omObservation.addNewPhenomenonTime(), stationFeat);

        // om:resultTime
        NcTimeInstantPropertyType.initResultTime(omObservation.addNewResultTime());

        // om:observedProperty
        NcReferenceType.initObservedProperty(omObservation.addNewObservedProperty(), dataVar);

        // om:procedure
        NcOMProcessPropertyType.initProcedure(omObservation.addNewProcedure());

        // om:featureOfInterest
        NcFeaturePropertyType.initFeatureOfInterest(omObservation.addNewFeatureOfInterest(), stationFeat);

        // om:result
        MeasurementTimeseriesDocument measurementTimeseriesDoc = MeasurementTimeseriesDocument.Factory.newInstance();
        NcMeasurementTimeseriesType.initMeasurementTimeseries(
                measurementTimeseriesDoc.addNewMeasurementTimeseries(), stationFeat, dataVar);
        omObservation.setResult(measurementTimeseriesDoc);

        return omObservation;
    }
public static OMObservationType initOmObservation(OMObservationType omObservation,
            StationTimeSeriesFeature stationFeat, VariableSimpleIF dataVar) throws IOException {
        // @gml:id
        String id = MarshallingUtil.createIdForType(OMObservationType.class);
        omObservation.setId(id);

        // om:phenomenonTime
        NcTimeObjectPropertyType.initPhenomenonTime(omObservation.addNewPhenomenonTime(), stationFeat);

        // om:resultTime
        NcTimeInstantPropertyType.initResultTime(omObservation.addNewResultTime());

        // om:observedProperty
        NcReferenceType.initObservedProperty(omObservation.addNewObservedProperty(), dataVar);

        // om:procedure
        NcOMProcessPropertyType.initProcedure(omObservation.addNewProcedure());

        // om:featureOfInterest
        NcFeaturePropertyType.initFeatureOfInterest(omObservation.addNewFeatureOfInterest(), stationFeat);

        // om:result
        MeasurementTimeseriesDocument measurementTimeseriesDoc = MeasurementTimeseriesDocument.Factory.newInstance();
        NcMeasurementTimeseriesType.initMeasurementTimeseries(
                measurementTimeseriesDoc.addNewMeasurementTimeseries(), stationFeat, dataVar);
        omObservation.setResult(measurementTimeseriesDoc);

        return omObservation;
    }
public static OMObservationType initOmObservation ( OMObservationType omObservation , StationTimeSeriesFeature stationFeat , VariableSimpleIF dataVar ) throws IOException { // @gml:id String id = MarshallingUtil . createIdForType ( OMObservationType . class ) ; omObservation . setId ( id ) ; // om:phenomenonTime NcTimeObjectPropertyType . initPhenomenonTime ( omObservation . addNewPhenomenonTime ( ) , stationFeat ) ; // om:resultTime NcTimeInstantPropertyType . initResultTime ( omObservation . addNewResultTime ( ) ) ; // om:observedProperty NcReferenceType . initObservedProperty ( omObservation . addNewObservedProperty ( ) , dataVar ) ; // om:procedure NcOMProcessPropertyType . initProcedure ( omObservation . addNewProcedure ( ) ) ; // om:featureOfInterest NcFeaturePropertyType . initFeatureOfInterest ( omObservation . addNewFeatureOfInterest ( ) , stationFeat ) ; // om:result MeasurementTimeseriesDocument measurementTimeseriesDoc = MeasurementTimeseriesDocument . Factory . newInstance ( ) ; NcMeasurementTimeseriesType . initMeasurementTimeseries ( measurementTimeseriesDoc . addNewMeasurementTimeseries ( ) , stationFeat , dataVar ) ; omObservation . setResult ( measurementTimeseriesDoc ) ; return omObservation ; }
wml2:Collection/wml2:observationMember/om:OM_Observation
wml2 : Collection / wml2 : observationMember / om : OM_Observation