from __future__ import annotations from qgis.core import QgsProcessingProvider from ..compat import icon from ..i18n import tr from .elevation_points_algorithm import ElevationPointsAlgorithm from .elevation_profile_algorithm import ElevationProfileAlgorithm from .isochrone_algorithm import IsochroneAlgorithm from .line_of_sight_algorithm import LineOfSightAlgorithm from .osm_algorithm import DonkeyOsmAlgorithm from .route_algorithm import RouteAlgorithm ALGORITHMS = ( DonkeyOsmAlgorithm, IsochroneAlgorithm, RouteAlgorithm, ElevationProfileAlgorithm, ElevationPointsAlgorithm, LineOfSightAlgorithm, ) class GeoDonkeyProvider(QgsProcessingProvider): def loadAlgorithms(self) -> None: # noqa: N802 for algorithm in ALGORITHMS: self.addAlgorithm(algorithm()) def id(self) -> str: # noqa: A003 return "geodonkey" def name(self) -> str: return "GeoDonkey" def longName(self) -> str: # noqa: N802 return tr("GeoDonkey – OpenStreetMap, routing, elevation and map styles") def icon(self): return icon("geodonkey.svg") def versionInfo(self) -> str: # noqa: N802 return "1.14"