fork von https://github.com/nilsnolde/OSMtools mit QGIS2 processing erweiterung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- coding: utf-8 -*-
  2. """
  3. /***************************************************************************
  4. OSMtools
  5. A QGIS plugin
  6. falk
  7. -------------------
  8. begin : 2017-02-01
  9. copyright : (C) 2017 by nils
  10. email : nils
  11. git sha : $Format:%H$
  12. ***************************************************************************/
  13. /***************************************************************************
  14. * *
  15. * This program is free software; you can redistribute it and/or modify *
  16. * it under the terms of the GNU General Public License as published by *
  17. * the Free Software Foundation; either version 2 of the License, or *
  18. * (at your option) any later version. *
  19. * *
  20. ***************************************************************************/
  21. This script initializes the plugin, making it known to QGIS.
  22. """
  23. __version__ = "2.1"
  24. # noinspection PyPep8Naming
  25. def classFactory(iface): # pylint: disable=invalid-name
  26. """Load OSMtools class from file OS;tools.
  27. :param iface: A QGIS interface instance.
  28. :type iface: QgsInterface
  29. """
  30. #
  31. from .osm_tools import OSMtools
  32. return OSMtools(iface)
  33. # TODO: test if this actually works on QGIS Server?
  34. # noinspection PyDocstring,PyPep8Naming
  35. def serverClassFactory(serverIface):
  36. from osmtools_processing.provider import OSMtoolsAlgoProvider