Problem in the river grid generation

17 views
Skip to first unread message

riad arefin

unread,
Dec 2, 2025, 2:11:42 PMDec 2
to SWAT-MODFLOW
Dear SWAT-Modflow Team,

I am trying to implement a SWAT-Modflow model to assess SW-GW interaction in my research work. 

I have implemented my QSWAT model. All Raster Spatial Reference:  WGS_1984_UTM_Zone_16N.

I have implemented QSwat model smoothly. Afterward, I am trying to implement the SWAT-MODFLOW model. 

For SWAT-MODFLOW project development I have used files those used and produced in files QSWAT. TexInOut, HRU, River, Basin shapefiles all connected properly. During "create a simple modflow model". after creating modflow grid (70 by 70-meter grid size 1:1 ratio, total row-530 and column-350. After the grid generation I have checked all files for attribute values it has added. When I am going to run the "create modflow river" option it is giving the following error:

An error has occurred while executing Python code:

_core.QgsProcessingException: Could not write feature Traceback (most recent call last):
  File "C:\Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\dialogs\createMFmodel_dialog.py", line 724, in create_mf_riv
    self.river_grid()
  File "C:\Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\dialogs\createMFmodel_dialog.py", line 800, in river_grid
    processing.run('qgis:intersection', params)
  File "C:\PROGRA~1/QGIS34~1.3/apps/qgis/./python/plugins\processing\tools\general.py", line 106, in run
    return Processing.runAlgorithm(
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\PROGRA~1/QGIS34~1.3/apps/qgis/./python/plugins\processing\core\Processing.py", line 228, in runAlgorithm
    ret, results = execute(
                  ^^^^^^^^
  File "C:\PROGRA~1/QGIS34~1.3/apps/qgis/./python/plugins\processing\gui\AlgorithmExecutor.py", line 74, in execute
    results, ok = alg.run(parameters, context, feedback, {}, False)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_core.QgsProcessingException: Could not write feature


Python version: 3.12.11 (main, Jun 17 2025, 13:41:12) [MSC v.1943 64 bit (AMD64)]
QGIS version: 3.44.3-Solothurn Solothurn, 1d1d67e9edd

Python Path:
  • C:/PROGRA~1/QGIS34~1.3/apps/qgis/./python
  • C:/Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/PROGRA~1/QGIS34~1.3/apps/qgis/./python/plugins
  • C:\PROGRA~1\QGIS34~1.3\apps\grass\grass84\etc\python
  • C:\Users\riadg\Documents
  • C:\Program Files\QGIS 3.44.3\bin\python312.zip
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\DLLs
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\Lib
  • C:\Program Files\QGIS 3.44.3\bin
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\Lib\site-packages
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\Lib\site-packages\win32
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\Lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\Lib\site-packages\Pythonwin
  • C:/Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWAT\QSWAT
  • C:\PROGRA~1\QGIS34~1.3\apps\Python312\Lib\site-packages\setuptools\_vendor
  • C:\Users/riadg/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus

Could you please give me advice for resolve this problem?

Thanks in advance.


Regards
Riad 
Reply all
Reply to author
Forward
0 new messages