Error in Python code creating RAS GIS import file

0 votes
215 views
asked Apr 15, 2017 by Elvis (120 points)
I try to export in HECRAS a model 2D with only three layers: DTM, flowarea2d and 2Dbreaklines.

I receive an error message at line 137 of code "ras_gis_import.py":

137, in spatial_extent                       box_min = box[box.index('(')+1:box.index(',')].split()

                                                      AttributeError: 'NoneType' object has no attribute 'index'

1 Answer

0 votes
answered Apr 23, 2017 by rpasiok (3,561 points)
Hi Elvis,

Thanks for your report. There is a (wrong) assumption that each model contains some 1D data. I have created a ticket for that on GitHub (https://github.com/erpas/rgis/issues/30).

As a workaround, you could create a dummy 1D reach with 2 xsections to enable the export to SDF.
Welcome to RiverGIS Q&A, where you can ask questions and receive answers from other members of the community.

Visit rivergis.com for documentation and general info about the QGIS plugin.
...