Search in sources :

Example 11 with TimeLocationValueTriple

use of org.n52.shetland.ogc.om.TimeLocationValueTriple in project arctic-sea by 52North.

the class TrajectoryObservationTypeEncoderTest method getCategoricalObservation.

private OmObservation getCategoricalObservation() throws EncodingException, ParseException, DecodingException, XmlException, IOException {
    MultiObservationValues<List<TimeLocationValueTriple>> multiObservationValues = new MultiObservationValues<List<TimeLocationValueTriple>>();
    TLVTValue tlvtValue = new TLVTValue();
    tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_1", "test_voc")));
    tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_1", "test_voc")));
    tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_3", "test_voc")));
    tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_4", "test_voc")));
    multiObservationValues.setValue(tlvtValue);
    OmObservation observation = createObservation();
    observation.setValue(multiObservationValues);
    return observation;
}
Also used : OmObservation(org.n52.shetland.ogc.om.OmObservation) CategoryValue(org.n52.shetland.ogc.om.values.CategoryValue) List(java.util.List) TLVTValue(org.n52.shetland.ogc.om.values.TLVTValue) MultiObservationValues(org.n52.shetland.ogc.om.MultiObservationValues) TimeLocationValueTriple(org.n52.shetland.ogc.om.TimeLocationValueTriple)

Aggregations

TimeLocationValueTriple (org.n52.shetland.ogc.om.TimeLocationValueTriple)9 TLVTValue (org.n52.shetland.ogc.om.values.TLVTValue)8 List (java.util.List)6 MultiObservationValues (org.n52.shetland.ogc.om.MultiObservationValues)6 OmObservation (org.n52.shetland.ogc.om.OmObservation)3 TVPDefaultMetadataPropertyType (net.opengis.waterml.x20.TVPDefaultMetadataPropertyType)2 SingleObservationValue (org.n52.shetland.ogc.om.SingleObservationValue)2 AbstractSamplingFeature (org.n52.shetland.ogc.om.features.samplingFeatures.AbstractSamplingFeature)2 CategoryValue (org.n52.shetland.ogc.om.values.CategoryValue)2 CountValue (org.n52.shetland.ogc.om.values.CountValue)2 QuantityValue (org.n52.shetland.ogc.om.values.QuantityValue)2 CategoricalTimeLocationValueTripleType (eu.europa.ec.inspire.schemas.omso.x30.CategoricalTimeLocationValueTripleType)1 MeasurementTimeLocationValueTripleType (eu.europa.ec.inspire.schemas.omso.x30.MeasurementTimeLocationValueTripleType)1 CategoricalTimeseriesDocument (net.opengis.waterml.x20.CategoricalTimeseriesDocument)1 CategoricalTimeseriesType (net.opengis.waterml.x20.CategoricalTimeseriesType)1 DefaultCategoricalTVPMetadataType (net.opengis.waterml.x20.DefaultCategoricalTVPMetadataType)1 DefaultTVPCategoricalMetadataDocument (net.opengis.waterml.x20.DefaultTVPCategoricalMetadataDocument)1 DefaultTVPMeasurementMetadataDocument (net.opengis.waterml.x20.DefaultTVPMeasurementMetadataDocument)1 MeasurementTimeseriesDocument (net.opengis.waterml.x20.MeasurementTimeseriesDocument)1 MeasurementTimeseriesType (net.opengis.waterml.x20.MeasurementTimeseriesType)1