コード例 #1
0
    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 {}
コード例 #2
0
 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