Search in sources :

Example 1 with VerticalCSDocument

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

the class GmlEncoderv321 method createVerticalCS.

private XmlObject createVerticalCS(VerticalCS verticalCS, EncodingContext ctx) throws EncodingException {
    VerticalCSType vcst = VerticalCSType.Factory.newInstance();
    addAbstractCoordincateSystemValues(vcst, verticalCS);
    if (ctx.has(XmlBeansEncodingFlags.DOCUMENT)) {
        VerticalCSDocument vcsd = VerticalCSDocument.Factory.newInstance();
        VerticalCSPropertyType vcdpt = VerticalCSPropertyType.Factory.newInstance();
        vcdpt.setVerticalCS(vcst);
        vcsd.setVerticalCS(vcdpt);
        return vcsd;
    } else if (ctx.has(XmlBeansEncodingFlags.PROPERTY_TYPE)) {
        VerticalCSPropertyType vcdpt = VerticalCSPropertyType.Factory.newInstance();
        vcdpt.setVerticalCS(vcst);
        return vcdpt;
    }
    return vcst;
}
Also used : VerticalCSDocument(net.opengis.gml.x32.VerticalCSDocument) VerticalCSType(net.opengis.gml.x32.VerticalCSType) VerticalCSPropertyType(net.opengis.gml.x32.VerticalCSPropertyType)

Aggregations

VerticalCSDocument (net.opengis.gml.x32.VerticalCSDocument)1 VerticalCSPropertyType (net.opengis.gml.x32.VerticalCSPropertyType)1 VerticalCSType (net.opengis.gml.x32.VerticalCSType)1