Search in sources :

Example 6 with ProfileValue

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

the class GWGeologyLogCoveragePropertyEncoderTest method should_encode_GWGeologyLogCoverage_full.

@Test
public void should_encode_GWGeologyLogCoverage_full() throws EncodingException, DecodingException {
    ProfileValue coverage = createGWGeologyLogCoverage(true, true);
    XmlObject encodedObject = encoder.encode(coverage);
    assertThat(XmlHelper.validateDocument(encodedObject), is(TRUE));
    assertThat(encodedObject, instanceOf(GWGeologyLogCoveragePropertyType.class));
}
Also used : XmlObject(org.apache.xmlbeans.XmlObject) ProfileValue(org.n52.shetland.ogc.om.values.ProfileValue) GWGeologyLogCoveragePropertyType(net.opengis.gwmlWell.x22.GWGeologyLogCoveragePropertyType) Test(org.junit.Test)

Example 7 with ProfileValue

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

the class GWGeologyLogCoveragePropertyEncoderTest method should_encode_GWGeologyLogCoverage_toDepth.

@Test
public void should_encode_GWGeologyLogCoverage_toDepth() throws EncodingException, DecodingException {
    ProfileValue coverage = createGWGeologyLogCoverage(false, true);
    XmlObject encodedObject = encoder.encode(coverage);
    assertThat(XmlHelper.validateDocument(encodedObject), is(TRUE));
    assertThat(encodedObject, instanceOf(GWGeologyLogCoveragePropertyType.class));
}
Also used : XmlObject(org.apache.xmlbeans.XmlObject) ProfileValue(org.n52.shetland.ogc.om.values.ProfileValue) GWGeologyLogCoveragePropertyType(net.opengis.gwmlWell.x22.GWGeologyLogCoveragePropertyType) Test(org.junit.Test)

Example 8 with ProfileValue

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

the class GWGeologyLogCoveragePropertyEncoderTest method createGWGeologyLogCoverage.

private ProfileValue createGWGeologyLogCoverage(boolean fromDepth, boolean toDepth) {
    ProfileValue coverage = new ProfileValue("");
    coverage.addValue(createLogValue(fromDepth, toDepth, 0.0));
    coverage.addValue(createLogValue(fromDepth, toDepth, 10.0));
    return coverage;
}
Also used : ProfileValue(org.n52.shetland.ogc.om.values.ProfileValue)

Aggregations

ProfileValue (org.n52.shetland.ogc.om.values.ProfileValue)8 GWGeologyLogCoveragePropertyType (net.opengis.gwmlWell.x22.GWGeologyLogCoveragePropertyType)4 XmlObject (org.apache.xmlbeans.XmlObject)4 Test (org.junit.Test)4 QuantityValue (org.n52.shetland.ogc.om.values.QuantityValue)2 List (java.util.List)1 Coordinate (org.locationtech.jts.geom.Coordinate)1 MultiObservationValues (org.n52.shetland.ogc.om.MultiObservationValues)1 SingleObservationValue (org.n52.shetland.ogc.om.SingleObservationValue)1 StreamingValue (org.n52.shetland.ogc.om.StreamingValue)1 TimeValuePair (org.n52.shetland.ogc.om.TimeValuePair)1 CountValue (org.n52.shetland.ogc.om.values.CountValue)1 ProfileLevel (org.n52.shetland.ogc.om.values.ProfileLevel)1 QuantityRangeValue (org.n52.shetland.ogc.om.values.QuantityRangeValue)1 RectifiedGridCoverage (org.n52.shetland.ogc.om.values.RectifiedGridCoverage)1 ReferencableGridCoverage (org.n52.shetland.ogc.om.values.ReferencableGridCoverage)1 TVPValue (org.n52.shetland.ogc.om.values.TVPValue)1 NoApplicableCodeException (org.n52.shetland.ogc.ows.exception.NoApplicableCodeException)1