Python Forum
Typeerror: Qgscoordinatetransform
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Typeerror: Qgscoordinatetransform
#1
Hi,
Im having trouble with a program called Qgis and a plugin for that thats called Posttelemac. Im getting a error code.

TypeError: QgsCoordinateTransform(): arguments did not match any overloaded call: overload 1: too many arguments overload 2: not enough arguments overload 3: not enough arguments overload 4: not enough arguments overload 5: argument 1 has unexpected type 'QgsCoordinateReferenceSystem'
Traceback (most recent call last):
File "C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\PostTelemac\PostTelemac.py", line 261, in run
self.slf[len(self.slf)-1].setRealCrs(self.iface.mapCanvas().mapSettings().destinationCrs()) #to prevent weird bug with weird crs
File "C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\PostTelemac\meshlayer\post_telemac_pluginlayer.py", line 409, in setRealCrs
self.xform = qgis.core.QgsCoordinateTransform(self.realCRS, qgis.utils.iface.mapCanvas().mapSettings().destinationCrs())
TypeError: QgsCoordinateTransform(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: not enough arguments
overload 3: not enough arguments
overload 4: not enough arguments
overload 5: argument 1 has unexpected type 'QgsCoordinateReferenceSystem'


Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS version: 3.0.1-Girona Girona, a86bec25eb

Python sökväg:
C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python
C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins
C:\PROGRA~1\QGIS2~1.18\bin\python36.zip
C:\PROGRA~1\QGIS2~1.18\apps\Python36\DLLs
C:\PROGRA~1\QGIS2~1.18\apps\Python36\lib
C:\PROGRA~1\QGIS2~1.18\bin
C:\PROGRA~1\QGIS2~1.18\apps\Python36
C:\PROGRA~1\QGIS2~1.18\apps\Python36\lib\site-packages
C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python



I haved followed this installation instructions. https://github.com/Artelia/PostTelemac/wiki#T2

Does anyone have any idea?
Reply
#2
We need to see the relevant code you are running. As it is, the only thing certain is you are not passing the correct amount / type arguments. Did you check the docs to make sure you are supplying this information?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020