atreebangalore / jaltol

a QGIS python plugin to make typology-specific Rural Water Security Plans. These plans help lead the user from data to decisions
MIT License
4 stars 3 forks source link

Water Balance not displaying correctly #1

Closed PranutiChoppakatla closed 2 years ago

PranutiChoppakatla commented 2 years ago

Describe the bug For the given shapefile the result runoff for any given shape is 0mm and other data is not available.

To Reproduce If using a custom shapefile please upload ZIP of the same to project google drive folder GISLayers and add link below. Link: https://drive.google.com/drive/u/0/folders/1Qg44GPY4EYOqmY_pPCbvrAB9w0-iHPw3

Steps to reproduce the behavior:

  1. Area of Interest is a custom shapefile.
  2. Selected one particular shape from the custom shapefile.
  3. Run the water balance for 2015

Expected behavior Expected the water balance where we have data for all the factors. here we have 0 runoff for any given shape.

Screenshots If applicable, add screenshots to help explain your problem. water_balance

Desktop (please complete the following information):

Additional context Add any other context about the problem here. No

atreebangalore commented 2 years ago

error identified as: Image.reduceRegion: The 'geometry' parameter is at least partly outside the selected projection's area of validity. needs more debugging to resolve

atreebangalore commented 2 years ago

used get-selected-geometry.py to identify shp file's geometry. It seems the shp was created in a different projection than EPSG:4326 image will need to identify and assign the file to the correct projection for this file to work. what is it's original source?

atreebangalore commented 2 years ago

correct projection is EPSG:32643, after reprojecting the shp file to this it works correctly. water_balance

please verify @PranutiChoppakatla