Search in sources :

Example 1 with OperationsMetadata

use of net.opengis.ows.x11.OperationsMetadataDocument.OperationsMetadata in project arctic-sea by 52North.

the class OwsEncoderv110 method encodeOperationsMetadata.

private OperationsMetadata encodeOperationsMetadata(OwsOperationsMetadata om) throws EncodingException {
    OperationsMetadata xom = OperationsMetadata.Factory.newInstance(getXmlOptions());
    om.getOperations().forEach(x -> encodeOwsOperation(x, xom.addNewOperation()));
    om.getConstraints().forEach(x -> encodeOwsDomain(x, xom.addNewConstraint()));
    om.getParameters().forEach(x -> encodeOwsDomain(x, xom.addNewParameter()));
    if (om.getExtension().isPresent()) {
        xom.setExtendedCapabilities(encodeOwsOperationsMetadataExtension(om.getExtension().get()));
    }
    return xom;
}
Also used : OperationsMetadata(net.opengis.ows.x11.OperationsMetadataDocument.OperationsMetadata) OwsOperationsMetadata(org.n52.shetland.ogc.ows.OwsOperationsMetadata)

Aggregations

OperationsMetadata (net.opengis.ows.x11.OperationsMetadataDocument.OperationsMetadata)1 OwsOperationsMetadata (org.n52.shetland.ogc.ows.OwsOperationsMetadata)1