QGIS: Plugin Fix - BecaGIS
Problem
Python error pops up when enabling BecaGIS Tools QGIS Version: >=3.36
log
2024-07-30T11:08:44 WARNING Traceback (most recent call last):
File "C:\Users/wayne/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\becagis\processing_provider\Vect_DirectionalMerge.py", line 122, in initAlgorithm
QgsProcessingParameterNumber(
TypeError: QgsProcessingParameterNumber(): arguments did not match any overloaded call:
overload 1: argument 'type' has unexpected type 'int'
overload 2: argument 1 has unexpected type 'str'Fix
Fix Code in plugins\becagis\processing_provider\Vect_DirectionalMerge.py
python
self.addParameter(
QgsProcessingParameterNumber(
self.ANGLE,
self.tr('Tolerance in degrees', 'Ngưỡng (độ)'),
type=QgsProcessingParameterNumber.Double,
# Depreciated, Reference:
# https://qgis.org/pyqgis/master/core/QgsProcessingParameterNumber.html
# type =1,
defaultValue = 30
)
)