Search in sources :

Example 1 with CodeType

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

the class GmlEncoderv311 method createCodeType.

private XmlObject createCodeType(org.n52.shetland.ogc.gml.CodeType sosCodeType) {
    CodeType codeType = CodeType.Factory.newInstance(getXmlOptions());
    if (sosCodeType.isSetCodeSpace()) {
        codeType.setCodeSpace(sosCodeType.getCodeSpace().toString());
    }
    codeType.setStringValue(sosCodeType.getValue());
    return codeType;
}
Also used : CodeType(net.opengis.gml.CodeType)

Example 2 with CodeType

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

the class GmlEncoderv311 method createCodeWithAuthorityType.

private XmlObject createCodeWithAuthorityType(CodeWithAuthority sosCodeWithAuthority) {
    if (sosCodeWithAuthority.isSetValue()) {
        CodeType codeType = CodeType.Factory.newInstance(getXmlOptions());
        String value = sosCodeWithAuthority.getValue();
        codeType.setStringValue(value);
        codeType.setCodeSpace(sosCodeWithAuthority.getCodeSpace());
        return codeType;
    }
    return null;
}
Also used : CodeType(net.opengis.gml.CodeType) LineString(org.locationtech.jts.geom.LineString)

Aggregations

CodeType (net.opengis.gml.CodeType)2 LineString (org.locationtech.jts.geom.LineString)1