__init__.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. """
  2. ***************************************************************************
  3. __init__.py
  4. ---------------------
  5. Date : August 2012
  6. Copyright : (C) 2012 by Victor Olaya
  7. Email : volayaf at gmail dot com
  8. ***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************
  16. """
  17. __author__ = 'Victor Olaya'
  18. __date__ = 'August 2012'
  19. __copyright__ = '(C) 2012, Victor Olaya'
  20. from processing.tools.dataobjects import * # NOQA
  21. from processing.tools.dataobjects import createContext
  22. from processing.tools.general import * # NOQA
  23. from processing.tools.general import (
  24. algorithmHelp,
  25. run,
  26. runAndLoadResults,
  27. createAlgorithmDialog,
  28. execAlgorithmDialog
  29. )
  30. from processing.tools.vector import * # NOQA
  31. from processing.tools.raster import * # NOQA
  32. from processing.tools.system import * # NOQA
  33. # monkey patch Python specific Processing API into stable qgis.processing module
  34. import qgis.processing
  35. qgis.processing.algorithmHelp = algorithmHelp
  36. qgis.processing.run = run
  37. qgis.processing.runAndLoadResults = runAndLoadResults
  38. qgis.processing.createAlgorithmDialog = createAlgorithmDialog
  39. qgis.processing.execAlgorithmDialog = execAlgorithmDialog
  40. qgis.processing.createContext = createContext
  41. def classFactory(iface):
  42. from processing.ProcessingPlugin import ProcessingPlugin
  43. return ProcessingPlugin(iface)