Skip to content

Commit 2cd6c0d

Browse files
committed
Fix to allow qgis_processing to function.
1 parent 8fbc1eb commit 2cd6c0d

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PLUGINNAME = latlontools
22
PLUGINS = "$(HOME)"/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME)
3-
PY_FILES = latLonTools.py __init__.py copyLatLonTool.py captureCoordinate.py zoomToLatLon.py settings.py multizoom.py mgrs.py showOnMapTool.py mapProviders.py tomgrs.py mgrstogeom.py digitizer.py util.py geom2field.py field2geom.py olc.py provider.py pluscodes.py utm.py coordinateConverter.py geohash.py maidenhead.py latLonFunctions.py captureExtent.py ups.py georef.py ecef.py
3+
PY_FILES = __init__.py captureCoordinate.py captureExtent.py coordinateConverter.py copyLatLonTool.py digitizer.py ecef.py field2geom.py geohash.py geom2field.py georef.py latLonFunctions.py latLonTools.py latLonToolsProcessing.py maidenhead.py mapProviders.py mgrs.py mgrstogeom.py multizoom.py olc.py pluscodes.py provider.py settings.py showOnMapTool.py tomgrs.py ups.py util.py utm.py zoomToLatLon.py
44
EXTRAS = metadata.txt icon.png
55

66
deploy:

__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
def classFactory(iface):
2-
from .latLonTools import LatLonTools
3-
return LatLonTools(iface)
2+
if iface:
3+
from .latLonTools import LatLonTools
4+
return LatLonTools(iface)
5+
else:
6+
from .latLonToolsProcessing import LatLonTools
7+
return LatLonTools()

latLonToolsProcessing.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from qgis.core import QgsApplication
2+
3+
from .latLonFunctions import InitLatLonFunctions, UnloadLatLonFunctions
4+
from .settings import settings
5+
from .provider import LatLonToolsProvider
6+
7+
8+
class LatLonTools:
9+
10+
def __init__(self):
11+
self.provider = None
12+
13+
def initProcessing(self):
14+
self.provider = LatLonToolsProvider()
15+
QgsApplication.processingRegistry().addProvider(self.provider)
16+
InitLatLonFunctions()
17+
18+
def initGui(self):
19+
self.initProcessing()
20+
21+
def unload(self):
22+
QgsApplication.processingRegistry().removeProvider(self.provider)
23+
UnloadLatLonFunctions()

metadata.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Lat Lon Tools
33
qgisMinimumVersion=3.4
44
description=Tools to capture and zoom to coordinates using decimal, DMS, WKT, GeoJSON, MGRS, UTM, UPS, Geohash, H3, Maidenhead grid, Plus Codes, and ECEF formats. Provides external map support, point digitizing tools, coordinate conversion tools, and conversion functions.
5-
version=3.6.9
5+
version=3.6.10
66
author=C Hamilton
77
88
about=
@@ -29,6 +29,7 @@ hasProcessingProvider=yes
2929
experimental=False
3030
deprecated=False
3131
changelog=
32+
3.6.10 - Fix to allow qgis_processing to work.
3233
3.6.9 - Internationalize and add french translation.
3334
3.6.8 - Bug fix in Fields to point layer algorithm.
3435
3.6.7 - Added the ability to set the size of the zoom to markers and lines.

0 commit comments

Comments
 (0)