def processAlgorithm(self, parameters, context, feedback): url = self.parameterAsString(parameters, self.URL, context) authid = self.parameterAsString(parameters, self.AUTHID, context) layer = self.parameterAsLayer(parameters, self.INPUT, context) server = GeonetworkServer("server", url=url, authid=authid) server.publishLayerMetadata(layer, None) return {}
def createGeonetworkServer(self): ##TODO check validity of name and values name = self.txtCswName.text() node = self.txtCswNode.text() authid = self.cswAuth.configId() url = self.txtCswUrl.text() profile = self.comboMetadataProfile.currentIndex() server = GeonetworkServer(name, url, authid, profile, node) return server