Search in sources :

Example 11 with EnvelopeType

use of net.opengis.gml.x32.EnvelopeType in project arctic-sea by 52North.

the class SweCommonEncoderv101 method createEnvelope.

private EnvelopeType createEnvelope(SweEnvelope sosSweEnvelope) throws EncodingException {
    EnvelopeType envelopeType = EnvelopeType.Factory.newInstance(getXmlOptions());
    addAbstractDataComponentValues(envelopeType, sosSweEnvelope);
    if (sosSweEnvelope.isReferenceFrameSet()) {
        envelopeType.setReferenceFrame(sosSweEnvelope.getReferenceFrame());
    }
    if (sosSweEnvelope.isLowerCornerSet()) {
        envelopeType.setLowerCorner(createVectorProperty(sosSweEnvelope.getLowerCorner()));
    }
    if (sosSweEnvelope.isUpperCornerSet()) {
        envelopeType.setUpperCorner(createVectorProperty(sosSweEnvelope.getUpperCorner()));
    }
    if (sosSweEnvelope.isTimeSet()) {
        envelopeType.addNewTime().setTimeRange(createTimeRange(sosSweEnvelope.getTime()));
    }
    return envelopeType;
}
Also used : EnvelopeType(net.opengis.swe.x101.EnvelopeType)

Aggregations

EnvelopeType (net.opengis.gml.v_3_1_1.EnvelopeType)6 AnyValueType (net.opengis.cat.wrs.v_1_0_2.AnyValueType)3 DirectPositionType (net.opengis.gml.v_3_1_1.DirectPositionType)3 PointType (net.opengis.gml.v_3_1_1.PointType)3 EnvelopeType (net.opengis.swe.x101.EnvelopeType)3 SlotType1 (oasis.names.tc.ebxml_regrep.xsd.rim._3.SlotType1)3 Envelope (com.vividsolutions.jts.geom.Envelope)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Map (java.util.Map)2 Collectors (java.util.stream.Collectors)2 ValueListType (net.opengis.cat.wrs.v_1_0_2.ValueListType)2 MapUtils (org.apache.commons.collections.MapUtils)2 StringUtils (org.apache.commons.lang.StringUtils)2 XmlObject (org.apache.xmlbeans.XmlObject)2 RegistryConstants (org.codice.ddf.registry.common.RegistryConstants)2 WebMapHelper (org.codice.ddf.registry.schemabindings.helper.WebMapHelper)2 Geometry (com.vividsolutions.jts.geom.Geometry)1 BigInteger (java.math.BigInteger)1 Arrays (java.util.Arrays)1