4 *************************************************************************** 8 Copyright : (C) 2015 by Pieter Kempeneers 9 Email : kempenep at gmail dot com 10 *************************************************************************** 12 * This program is free software; you can redistribute it and/or modify * 13 * it under the terms of the GNU General Public License as published by * 14 * the Free Software Foundation; either version 2 of the License, or * 15 * (at your option) any later version. * 17 *************************************************************************** 20 __author__ =
'Pieter Kempeneers' 21 __date__ =
'April 2015' 22 __copyright__ =
'(C) 2015, Pieter Kempeneers' 24 __revision__ =
'$Format:%H$' 26 from processing.core.GeoAlgorithm
import GeoAlgorithm
29 from PyQt4
import QtGui
30 from pktools.pktoolsUtils
import pktoolsUtils
32 from processing.core.parameters
import ParameterFile
33 from processing.core.parameters
import ParameterBoolean
34 from processing.core.parameters
import ParameterNumber
35 from processing.core.parameters
import ParameterString
36 from processing.core.parameters
import ParameterSelection
37 from processing.core.outputs
import OutputFile
38 from processing.core.outputs
import OutputRaster
39 from processing.core.outputs
import OutputVector
44 filepath = os.path.dirname(__file__) +
"/logo.png" 45 return QtGui.QIcon(filepath)
47 def checkBeforeOpeningParametersDialog(self):
48 path = pktoolsUtils.pktoolsPath()
50 return "pktools folder is not configured.\nPlease configure it before running pktools algorithms." 55 helpUrl =
'http://pktools.nongnu.org/html/{}.html'.format(self.cliName())