tproduit / pic2map

QGIS plugin for camera orientation and interaction between a picture and the map (monoplotting).
22 stars 5 forks source link

Upload photo and DEM - ZeroDivisionError: float division by zero #3

Closed simonecircosta closed 5 years ago

simonecircosta commented 6 years ago

An error has occurred while executing Python code:

ZeroDivisionError: float division by zero Traceback (most recent call last): File "C:/Users/ruwa_3_ut/.qgis2/python/plugins\Pic2Map\pic2Map.py", line 142, in run self.runGCPMainWindow(False) File "C:/Users/ruwa_3_ut/.qgis2/python/plugins\Pic2Map\pic2Map.py", line 258, in runGCPMainWindow self.load_picture(self.picture_name) File "C:/Users/ruwa_3_ut/.qgis2/python/plugins\Pic2Map\pic2Map.py", line 319, in load_picture size[0] = int(float(float(rlayer.width())/float(rlayer.height()))*size[1]) ZeroDivisionError: float division by zero

Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS version: 2.14.3-Essen Essen, cf2ebb8