ConservationInternational / trends.earth

trends.earth - measure land change
http://trends.earth
GNU General Public License v2.0
111 stars 45 forks source link

Issue with the 'Create False Negative/Positive Layer' tool in TE v 2.1.6 [Spanish] #752

Closed franklinp1975 closed 1 year ago

franklinp1975 commented 1 year ago

Hi TE team,

I executed the entire protocol [i.e., from 'Settings/ Custom Land Cover Classes' to 'Generate data package for UNCCD reporting'] using TE (v 2.1.6 in Spanish - revision fed0f996, 2012/12/08 22:03:09Z) and Costa Rica's custom land covers [i.e., 2001, 2015, and 2019]. No issues were found, except for the 'Create False Negative/Positive Layer' tool, which did not detect any previous rasters [I chose the Natural Earth boundary for Costa Rica; all previous algorithms worked fine].

imagen

In addition, this message is displayed: "2022-12-13T16:10:22 WARNING Traceback (most recent call last): File"C:\Users/SENTINEL/AppData/Roaming/QGIS/QGIS3\profiles\SpanishWebinars/python/plugins\LDMP\select_dataset.py", line 69, in run_settings self.iface.showOptionsDialog(currentPage=OPTIONS_TITLE) AttributeError: 'DlgSelectDataset' object has no attribute 'iface'"

Thanks in advance.

-Franklin

azvoleff commented 1 year ago

@gdaldegan - can you see if you can reproduce this in the latest zipfile version of the plugin? The AttributeError: 'DlgSelectDataset' object has no attribute 'iface'" Franklin mentions I know is fixed, and I think the issue of not having false pos/negative layers show up is fixed as well, but need to check that.

gdaldegan commented 1 year ago

getting a TypeError 'int' object is not iterable when I change the language of QGIS from/to English/Spanish/Portuguese/French

Algo getting AttributeError 'NoneType' object has no attribute 'pushButton_download' after loading the custom lc classes in Settings

gdaldegan commented 1 year ago

currently running TE version 794ea402, 2023/01/09 19:56:52Z and facing the issue above described by Franklin, when QGIS is set to other language than English. False positive/negative dialog is only recognizing the Productivity Degradation raster, all other fields are left blank:

Screenshot_20230111_094255

When QGIS is set to English language, all fields are automatically populated: Screenshot_20230111_100008

gdaldegan commented 1 year ago

When False Positive/Negative tools is functional (QGIS is set to English), the following Py Error is popping up while creating a vector delineating the area to recode: AttributeError type object 'Qgis' has no attribute 'AvoidIntersectionsMode'