Files
geodonkey-qgis-plugin/geodonkey/processing/provider.py
T
2026-12-01 22:05:21 +01:00

43 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"