Search in sources :

Example 1 with CoordinateSystemAxisDocument

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

the class GmlEncoderv321 method createCoordinateSystemAxis.

private XmlObject createCoordinateSystemAxis(CoordinateSystemAxis coordinateSystemAxis, EncodingContext ctx) throws EncodingException {
    CoordinateSystemAxisType csat = CoordinateSystemAxisType.Factory.newInstance();
    addDefinitonValues(csat, coordinateSystemAxis);
    csat.setAxisAbbrev(createCodeType(coordinateSystemAxis.getAxisAbbrev()));
    csat.setAxisDirection(createCodeWithAuthorityType(coordinateSystemAxis.getAxisDirection()));
    if (coordinateSystemAxis.isSetMinimumValue()) {
        csat.setMinimumValue(coordinateSystemAxis.getMinimumValue());
    }
    if (coordinateSystemAxis.isSetMaximumValue()) {
        csat.setMaximumValue(coordinateSystemAxis.getMaximumValue());
    }
    if (coordinateSystemAxis.isSetRangeMeaning()) {
        csat.setRangeMeaning(createCodeWithAuthorityType(coordinateSystemAxis.getRangeMeaning()));
    }
    csat.setUom(coordinateSystemAxis.getUom());
    if (ctx.has(XmlBeansEncodingFlags.DOCUMENT)) {
        CoordinateSystemAxisDocument csad = CoordinateSystemAxisDocument.Factory.newInstance();
        csad.setCoordinateSystemAxis(csat);
        return csad;
    } else if (ctx.has(XmlBeansEncodingFlags.PROPERTY_TYPE)) {
        CoordinateSystemAxisPropertyType csapt = CoordinateSystemAxisPropertyType.Factory.newInstance();
        csapt.setCoordinateSystemAxis(csat);
        return csapt;
    }
    return csat;
}
Also used : CoordinateSystemAxisType(net.opengis.gml.x32.CoordinateSystemAxisType) CoordinateSystemAxisDocument(net.opengis.gml.x32.CoordinateSystemAxisDocument) CoordinateSystemAxisPropertyType(net.opengis.gml.x32.CoordinateSystemAxisPropertyType)

Aggregations

CoordinateSystemAxisDocument (net.opengis.gml.x32.CoordinateSystemAxisDocument)1 CoordinateSystemAxisPropertyType (net.opengis.gml.x32.CoordinateSystemAxisPropertyType)1 CoordinateSystemAxisType (net.opengis.gml.x32.CoordinateSystemAxisType)1