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