Search in sources :

Example 6 with TimeseriesTVPDocument

use of net.opengis.tsml.x10.TimeseriesTVPDocument in project arctic-sea by 52North.

the class TsmlTVPEncoderv10Test method shouldEncodeInterpolationTypeContinuousAsDefault.

@Test
public void shouldEncodeInterpolationTypeContinuousAsDefault() throws EncodingException, XmlException {
    XmlObject encodedElement = encoder.encode(mv);
    TimeseriesTVPType.DefaultPointMetadata defaultPointMetadata = ((TimeseriesTVPDocument) encodedElement).getTimeseriesTVP().getDefaultPointMetadata();
    PointMetadataDocument tvpMeasurementMetadataDocument = PointMetadataDocument.Factory.parse(defaultPointMetadata.xmlText());
    ReferenceType interpolationType = tvpMeasurementMetadataDocument.getPointMetadata().getInterpolationType();
    MatcherAssert.assertThat(interpolationType.getHref(), Is.is(TimeseriesMLConstants.InterpolationType.Continuous.getIdentifier()));
    MatcherAssert.assertThat(interpolationType.getTitle(), Is.is(TimeseriesMLConstants.InterpolationType.Continuous.getTitle()));
}
Also used : XmlObject(org.apache.xmlbeans.XmlObject) PointMetadataDocument(net.opengis.tsml.x10.PointMetadataDocument) TimeseriesTVPType(net.opengis.tsml.x10.TimeseriesTVPType) ReferenceType(net.opengis.gml.x32.ReferenceType) Test(org.junit.jupiter.api.Test)

Aggregations

PointMetadataDocument (net.opengis.tsml.x10.PointMetadataDocument)4 TimeseriesTVPDocument (net.opengis.tsml.x10.TimeseriesTVPDocument)4 TimeseriesTVPType (net.opengis.tsml.x10.TimeseriesTVPType)4 XmlObject (org.apache.xmlbeans.XmlObject)4 Test (org.junit.jupiter.api.Test)4 MeasurementTimeseriesMetadata (org.n52.shetland.ogc.om.series.MeasurementTimeseriesMetadata)3 InterpolationType (org.n52.shetland.ogc.om.series.tsml.TimeseriesMLConstants.InterpolationType)3 AbstractGMLType (net.opengis.gml.x32.AbstractGMLType)2 ReferenceType (net.opengis.gml.x32.ReferenceType)2 PointMetadataType (net.opengis.tsml.x10.PointMetadataType)2 DefaultPointMetadata (org.n52.shetland.ogc.om.series.DefaultPointMetadata)2 TimeseriesMetadata (org.n52.shetland.ogc.om.series.TimeseriesMetadata)2 DefaultTVPMeasurementMetadata (org.n52.shetland.ogc.om.series.tsml.DefaultTVPMeasurementMetadata)2 TimeseriesMetadataType (net.opengis.tsml.x10.TimeseriesMetadataType)1 GDurationBuilder (org.apache.xmlbeans.GDurationBuilder)1 OmObservableProperty (org.n52.shetland.ogc.om.OmObservableProperty)1 Metadata (org.n52.shetland.ogc.om.series.Metadata)1 TVPValue (org.n52.shetland.ogc.om.values.TVPValue)1