Search in sources :

Example 1 with VerticalDatumDocument

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

the class GmlEncoderv321 method createVerticalDatum.

private XmlObject createVerticalDatum(VerticalDatum verticalDatum, EncodingContext ctx) throws EncodingException {
    VerticalDatumType vdt = VerticalDatumType.Factory.newInstance();
    addAbstractDatumValues(vdt, verticalDatum, ctx);
    if (ctx.has(XmlBeansEncodingFlags.DOCUMENT)) {
        VerticalDatumDocument vdd = VerticalDatumDocument.Factory.newInstance();
        VerticalDatumPropertyType vdpt = VerticalDatumPropertyType.Factory.newInstance();
        vdpt.setVerticalDatum(vdt);
        vdd.setVerticalDatum(vdpt);
        return vdd;
    } else if (ctx.has(XmlBeansEncodingFlags.PROPERTY_TYPE)) {
        VerticalDatumPropertyType vdpt = VerticalDatumPropertyType.Factory.newInstance();
        vdpt.setVerticalDatum(vdt);
        return vdpt;
    }
    return vdt;
}
Also used : VerticalDatumType(net.opengis.gml.x32.VerticalDatumType) VerticalDatumPropertyType(net.opengis.gml.x32.VerticalDatumPropertyType) VerticalDatumDocument(net.opengis.gml.x32.VerticalDatumDocument)

Aggregations

VerticalDatumDocument (net.opengis.gml.x32.VerticalDatumDocument)1 VerticalDatumPropertyType (net.opengis.gml.x32.VerticalDatumPropertyType)1 VerticalDatumType (net.opengis.gml.x32.VerticalDatumType)1