Describe the bug
1) Trying to calculate Surface water Availability for Raichur and Koppal districts where error occurs after populating the layers and the value for Total Surfacewater availability is not showing.
2) Trying to calculate agricultural water demand for the above districts where error occurs while populating the crop details. The water demand value is not showing.
3) Demand Domestic side Calculate tab is not showing.
Select the feature which populates the village Data
Calculates GW
while calculating the agricultural demand error occurs
Expected behavior
Surface water Availability should be shown
Total crop water demand to be populated
Screenshots
Desktop (please complete the following information):
OS Name and Version : [e.g. Windows 10, Ubuntu 20.0]
QGIS Version: [e.g. 3.26]
Additional context
1) After Running Surfacewater tab-this error shows
WARNING Traceback (most recent call last):
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 205, in initSWaterAvailability
self.popSWA()
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 258, in popSWA
WaterBodiesS1 = self.S1.calcNoWaterBodies(self.year,self.geometry)
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\libs\jaltol_surfacewater.py", line 116, in calcNoWaterBodies
Map.addLayer(self.s1EMwbv,{},'Water Bodies Vector')
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\Map.py", line 25, in addLayer
add_or_update_ee_layer(eeObject, visParams, name, shown, opacity)
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 158, in add_or_update_ee_layer
update_ee_layer_properties(layer, eeObject, visParams, shown, opacity)
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 26, in update_ee_layer_properties
layer.dataProvider().set_ee_object(eeObject)
AttributeError: 'QgsRasterDataProvider' object has no attribute 'set_ee_object'
2) After calculating Demand Agriculture tab this Error shows:-
WARNING Traceback (most recent call last):
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 359, in initCropWaterRequirement
self.popCropWaterRequirement()
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 389, in popCropWaterRequirement
self.cwr_widget.popCropDetails(self.crop_details)
File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_cwr_widget.py", line 95, in popCropDetails
self.layout.itemAtPosition(row,0).widget().setCurrentText(crop)
AttributeError: 'NoneType' object has no attribute 'widget'
Describe the bug 1) Trying to calculate Surface water Availability for Raichur and Koppal districts where error occurs after populating the layers and the value for Total Surfacewater availability is not showing. 2) Trying to calculate agricultural water demand for the above districts where error occurs while populating the crop details. The water demand value is not showing. 3) Demand Domestic side Calculate tab is not showing.
To Reproduce If using a custom shapefile please upload ZIP of the same to project google drive folder GISLayers and add link below. https://drive.google.com/drive/u/0/folders/1Z3TLHLVYfoOx7otVhE1JcGd5HIQ5bzf6
Steps to reproduce the behavior:
Expected behavior Surface water Availability should be shown Total crop water demand to be populated
Screenshots![image](https://user-images.githubusercontent.com/107618461/221182919-f6423d5f-afd4-4580-be4d-8b93f66df1cd.png)
Desktop (please complete the following information):
Additional context 1) After Running Surfacewater tab-this error shows WARNING Traceback (most recent call last): File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 205, in initSWaterAvailability self.popSWA() File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 258, in popSWA WaterBodiesS1 = self.S1.calcNoWaterBodies(self.year,self.geometry) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\libs\jaltol_surfacewater.py", line 116, in calcNoWaterBodies Map.addLayer(self.s1EMwbv,{},'Water Bodies Vector') File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\Map.py", line 25, in addLayer add_or_update_ee_layer(eeObject, visParams, name, shown, opacity) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 158, in add_or_update_ee_layer update_ee_layer_properties(layer, eeObject, visParams, shown, opacity) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 26, in update_ee_layer_properties layer.dataProvider().set_ee_object(eeObject) AttributeError: 'QgsRasterDataProvider' object has no attribute 'set_ee_object'
2) After calculating Demand Agriculture tab this Error shows:- WARNING Traceback (most recent call last): File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 359, in initCropWaterRequirement self.popCropWaterRequirement() File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 389, in popCropWaterRequirement self.cwr_widget.popCropDetails(self.crop_details) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_cwr_widget.py", line 95, in popCropDetails self.layout.itemAtPosition(row,0).widget().setCurrentText(crop) AttributeError: 'NoneType' object has no attribute 'widget'