Closed apiszcz closed 4 years ago
Lines 111-122 of drapping.py
#img = QImage(picture_name) #img.width()/float( img.height()) if (minX<maxX) and (minY<maxY): ortho = orthoClass(self.Xmat, self.Ymat, minX, maxX, minY, maxY, meterPerPixel, image, self.crs)#20150823 elif (maxX<minX) and (maxY<minY): ortho = orthoClass(self.Xmat, self.Ymat, maxX, minX, maxY, minY, meterPerPixel, image, self.crs)#20150823 elif (maxX<minX): ortho = orthoClass(self.Xmat, self.Ymat, maxX, minX, minY, maxY, meterPerPixel, image, self.crs)#20150823 elif (maxY<minY): ortho = orthoClass(self.Xmat, self.Ymat, minX, maxX, maxY, minY, meterPerPixel, image, self.crs) ortho.computeOrtho(self)
An error has occurred while executing Python code: UnboundLocalError: local variable 'ortho' referenced before assignment Traceback (most recent call last): File "C:/Users/testuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Pic2Map\drapping.py", line 122, in saveOrtho ortho.computeOrtho(self) UnboundLocalError: local variable 'ortho' referenced before assignment Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] QGIS version: 3.8.2-Zanzibar Zanzibar, 4470baa1a3 Python Path: C:/PROGRA~1/QGIS3~1.8/apps/qgis/./python C:/Users/testuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/testuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS3~1.8/apps/qgis/./python/plugins C:\Program Files\QGIS 3.8\bin\python37.zip C:\PROGRA~1\QGIS3~1.8\apps\Python37\DLLs C:\PROGRA~1\QGIS3~1.8\apps\Python37\lib C:\Program Files\QGIS 3.8\bin C:\PROGRA~1\QGIS3~1.8\apps\Python37 C:\PROGRA~1\QGIS3~1.8\apps\Python37\lib\site-packages C:\PROGRA~1\QGIS3~1.8\apps\Python37\lib\site-packages\win32 C:\PROGRA~1\QGIS3~1.8\apps\Python37\lib\site-packages\win32\lib C:\PROGRA~1\QGIS3~1.8\apps\Python37\lib\site-packages\Pythonwin C:/Users/testuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\testuser\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\shapetools\ext-libs
Lines 111-122 of drapping.py