enricofer / go2mapillary

a plugin for displaying and extracting information from Mapillary street level imagery with QGIS (3.0)
GNU General Public License v3.0
34 stars 14 forks source link

Type error on QgsCoordinateTransform #9

Closed enricofer closed 6 years ago

enricofer commented 6 years ago

Latest QGIS dev introduced a new api break that causes the following exception:

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'

alexmodesto73 commented 6 years ago

Unusable extension

enricofer commented 6 years ago

There is an api break on QgsCoordinateTransform. You have to update QGIS dev to solve the issue.

alexmodesto73 commented 6 years ago

ok

wait.. qgis is already the newest version (1:2.99.0+git20180111+5522f10+14stretch).

enricofer commented 6 years ago

Could you send me the exception trace?

alexmodesto73 commented 6 years ago

Une erreur est survenue lors de l'éxécution du code Python:

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 "/home/alex/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_explorer.py", line 430, in run self.mapRefreshed() File "/home/alex/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_explorer.py", line 344, in mapRefreshed self.coverage.update_coverage() File "/home/alex/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_coverage.py", line 287, in update_coverage self.download_tiles() File "/home/alex/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_coverage.py", line 143, in download_tiles wgs84_minimum = self.transformToWGS84(QgsPointXY (ex.xMinimum(),ex.yMinimum())) File "/home/alex/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_coverage.py", line 136, in transformToWGS84 xform = QgsCoordinateTransform(crsSrc, crsDest) 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'

Version de Python : 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170118] Version de QGIS : 2.99.0-Master Master, 5522f10

Chemin Python :


Alexandre MODESTO

2018-01-13 19:06 GMT+01:00 enrico ferreguti notifications@github.com:

Could you send me the exception trace?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/enricofer/go2mapillary/issues/9#issuecomment-357454456, or mute the thread https://github.com/notifications/unsubscribe-auth/AhUUTs-oIXTFMSwKq7GeZ6Xb43eLfCeaks5tKPCggaJpZM4RSPzj .

alexmodesto73 commented 6 years ago

a dev qgis told me this:

Check https://github.com/qgis/QGIS/blob/master/doc/api_break.dox#L692


Alexandre MODESTO

2018-01-13 19:06 GMT+01:00 enrico ferreguti notifications@github.com:

Could you send me the exception trace?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/enricofer/go2mapillary/issues/9#issuecomment-357454456, or mute the thread https://github.com/notifications/unsubscribe-auth/AhUUTs-oIXTFMSwKq7GeZ6Xb43eLfCeaks5tKPCggaJpZM4RSPzj .

enricofer commented 6 years ago

in github master version the issue is already fixed: https://github.com/enricofer/go2mapillary/commit/ef0e82829e89cb85c3034078765906e1c6ff092d I submitted the new plugin release to the repository and I'm still waiting for publishing, but if you need the fix right now you can download master.

enricofer commented 6 years ago

just published:

Plugin go2mapillary approval by zimbogisgeek. The plugin version "[1246] go2mapillary 1.4" is now approved Link: http://plugins.qgis.org/plugins/go2mapillary/