gustavowillam / SmartMapPlugin

Plugin Qgis3.10.x para interpolação utilizando Krigagem Ordinária (OK), Machine Learning (ML) e Geração de Zonas de Manejo
https://github.com/gustavowillam/SmartMapPlugin
GNU General Public License v3.0
53 stars 14 forks source link

Python error #11

Closed owaisaliwani closed 3 years ago

owaisaliwani commented 3 years ago

An error has occurred while executing Python code:

ValueError: range() arg 3 must not be zero Traceback (most recent call last): File "C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Smart_Map\Smart_Map.py", line 1711, in pushButton_ImportQGIS_clicked ymarks=[i for i in range(int(self.Cord_Y_min),int(self.Cord_Y_max) , interval_y)] ValueError: range() arg 3 must not be zero

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] QGIS version: 3.18.3-Zürich Zürich, 735cc85be9

Python Path: C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python/plugins C:\Program Files\QGIS 3.16\bin\python37.zip C:\PROGRA~1\QGIS3~1.16\apps\Python37\DLLs C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib C:\Program Files\QGIS 3.16\bin C:\PROGRA~1\QGIS3~1.16\apps\Python37 C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-packages C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-packages\win32 C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-packages\win32\lib C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-packages\Pythonwin C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\Administrator\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\HCMGIS/forms

gustavogvp commented 3 years ago

Também tive esse problema, conseguiu solucionar?

gustavowillam commented 3 years ago

This error is occurring because the variable ( interval_y) has a zero value. Probably because the latitude variation has a minimum value, close to zero. Please check the amplitude (see the minimum and maximum value) of the variation of your y-coordinate (latitude) in UTM. A possible failure could be when converting from lat/long to UTM in QGIS.

owaisaliwani commented 3 years ago

Thank you sir. You have developed wonderful plugin. I corrected this error by reprojecting data file.

On Tue, 26 Oct, 2021, 5:46 pm Gustavo Willam, @.***> wrote:

This error is occurring because the variable ( interval_y) has a zero value. Probably because the latitude variation has a minimum value, close to zero. Please check the amplitude (see the minimum and maximum value) of the variation of your y-coordinate (latitude) in UTM. A possible failure could be when converting from lat/long to UTM in QGIS.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gustavowillam/SmartMapPlugin/issues/11#issuecomment-951879699, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGQCZNUCWJYVXTHIAZCSNDUI2L2HANCNFSM5F63JDJA .