hhnk-git / legger

GNU General Public License v3.0
0 stars 1 forks source link

tuple index out of range #46

Closed wvanesse closed 4 years ago

wvanesse commented 4 years ago

Foutmelding met data castricum, bij het berekenen van de fit

IndexError: tuple index out of range Traceback (most recent call last): File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins\legger\views\calculating_profiles.py", line 318, in execute_step3 resultaat = doe_profinprof(con_legger.cursor(), con_legger.cursor()) File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins\legger\utils\profile_match_a.py", line 505, in doe_profinprof prof_in_prof(gemprofshapely, theoprofshapely, aantalstappen, precisie, obdiepte, debug) File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins\legger\utils\profile_match_a.py", line 298, in prof_in_prof waterbreedte_gemeten = profgem.bounds[2] - profgem.bounds[0] IndexError: tuple index out of range

bastiaan-roos commented 4 years ago

er gaat iets mis in profiel 19117, wat een lege geometrie oplevert. Check toegevoegd op geldige geometrie. fix in ffa46589a41f275dd40b38be31e96ccabfc77d9a