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;
}
Aggregations