Deprecated: Function get_magic_quotes_gpc() is deprecated in /qa-include/qa-base.php on line 1170
RiverGIS Q&A - Recent questions http://q2a.rivergis.com//questions Powered by Question2Answer BaldEagle Sample data - Extracting Mannings's n values for XC programming error http://q2a.rivergis.com//895/baldeagle-extracting-programming <p>Dear friends,</p><p></p><p>I've tried to extract manning's n values for the cross-sections at my site of interest, however I was quite struggling with that. The RiverGis kept saying <em>ProgrammingError('function st_line_interpolate_point(geometry, numeric) does not exist\nLINE 39: ST_Line_Interpolate_Point(inter_xs_dump.geom, 0.0000...\n ^\nHINT: No function matches the given name and argument types. You might need to add explicit type casts.\n')</em></p><p><em>Process aborted!</em></p><p></p><p>Therefore I've tried the same process with BaldEagle sample data but the result is just the same! The same error occuts. I am getting helpless, does anybody faced the same problem? My input polygon layer has&nbsp;just the same features and structure as the one in sample data.&nbsp;</p><p></p><p>Thanks for any kind of help!</p><p>Regards</p><p>Peter</p> http://q2a.rivergis.com//895/baldeagle-extracting-programming Thu, 24 Oct 2019 15:00:10 +0000 'NoneType' object has no attribute 'startswith' http://q2a.rivergis.com//832/nonetype-object-attribute-startswith <p><span style="font-family:'Courier New'">I have a River model with some tributaries. After I added the XSCutLines I creasted manually I got this Error message while trying to create RAS GIS Import File:</span></p><p><span style="font-family:'Courier New'">ras_gis_import.py", line 78, in unpack_wkt<br>&nbsp; &nbsp; if wkt.startswith('POINT'):<br>AttributeError: 'NoneType' object has no attribute 'startswith'</span></p><p><span style="font-family:'Courier New'">any ideas?</span></p> http://q2a.rivergis.com//832/nonetype-object-attribute-startswith Mon, 09 Sep 2019 13:51:08 +0000 Null Reach Lengths and FromStation / ToStation values http://q2a.rivergis.com//771/lengths-fromstation-tostation-values I am a new RiverGIS user and see that this question has come up in the past, but I do not see a comprehensive response.<br /> <br /> I have a river network with several tributaries. &nbsp;I have imported a stream center line from QGIS, and manually delineated some cross section lines (for a portion of the system). &nbsp;I have assigned RiverCode and ReachCode attributes to the center line feature.<br /> <br /> I am attempting to generate the StreamCenterlines and XSCutLines &nbsp;features through the RiverGIS &nbsp;topology build functions but the constructed Attribute Table for StreamCenterlines produces NULL Reach Lengths, FromStation and ToStation values for several of the reaches. &nbsp;&nbsp;<br /> <br /> The plan view topology shown in the map appears to be reasonable (flow arrows in correct directions, reaches labelled according to assigned Codes and nodes at all confluences and upstream limits).<br /> <br /> I am not clear as to whether the node numbering should follow any logical ordering (it does not appear to) and there is only one endpoint defined at the outlet of the system (although &nbsp;in previous attempts, I have seen endpoints generated at some upstream tributary limits as well).<br /> <br /> Can anyone suggest how I might find the cause of the Null Values in the stream centerline topology?<br /> <br /> thanks http://q2a.rivergis.com//771/lengths-fromstation-tostation-values Sat, 17 Aug 2019 19:16:25 +0000 I am having problem while Calculating cross-sections distances to the next cross-section downstream. http://q2a.rivergis.com//746/calculating-distances-downstream <p><strong><span style="color:#dc7d00">It shows the following error.&nbsp;</span></strong></p><p><span style="color:#dc7d00">2019-06-09T14:14:05 &nbsp;&nbsp;&nbsp; WARNING &nbsp;&nbsp;&nbsp;</span>Traceback (most recent call last):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File "C:/Users/Shishir PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rivergis\rivergis.py", line 85, in<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.ui.actionRASXSDownstreamReachLengths.triggered.connect(lambda: r1d.ras1dXSDownstreamLengths(self))<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File "C:/Users/Shishir PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rivergis\ras1dFunctions.py", line 105, in ras1dXSDownstreamLengths<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if row[0].lower() not in ['channel', 'right', 'left', 'c', 'l', 'r']:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AttributeError: 'NoneType' object has no attribute 'lower'</p> http://q2a.rivergis.com//746/calculating-distances-downstream Sun, 09 Jun 2019 20:16:36 +0000 Other users out there in Portland, OR? http://q2a.rivergis.com//708/other-users-out-there-in-portland-or I was wondering if there were any other rivergis users in the Portland, Oregon vicinity who would be interested in getting together? http://q2a.rivergis.com//708/other-users-out-there-in-portland-or Wed, 10 Apr 2019 19:31:58 +0000 Trying to run RiverGIS 3.0 on QGIS 3.4 using pgAdmin4. http://q2a.rivergis.com//693/trying-rivergis-qgis-using-pgadmin4 Should I be using a different version? I am getting this error in RiverGIS:<br /> <br /> &quot;Couldn't connect to river database: bv mp3.5@localhost<br /> <br /> Please, check you database connection settings!&quot;<br /> <br /> I have a friend who uses pgAdmin4 regularly for work and he said that I have that part setup correctly.<br /> <br /> QGIS says that it is reading the database successfully. I tested this using &gt; Data Source Manager &gt; PostgreSQL &gt;Create a New PostGIS Connection&gt; Test Connection http://q2a.rivergis.com//693/trying-rivergis-qgis-using-pgadmin4 Mon, 25 Mar 2019 05:55:22 +0000 How do you move a RiverGIS database to a new computer http://q2a.rivergis.com//690/how-move-rivergis-database-computer I am pretty new to postGIS and all that, but I had a RiverGIS project set up and it set idle for a few months and now I have a new computer and want to pick up the project again. &nbsp;&nbsp;Does anyone know how you go about moving the database from one computer to another? &nbsp;&nbsp;I still have access to the old computer.<br /> <br /> Thanks http://q2a.rivergis.com//690/how-move-rivergis-database-computer Wed, 13 Mar 2019 16:53:39 +0000 Limit size of the 2D computational mesh http://q2a.rivergis.com//660/limit-size-of-the-computational-mesh <p>Hi,</p><p>I am trying to create a 2D computation model in RiverGis, however, I have issues in creating my 2D mesh. The total area of my DTM is 2.5x3.7 km<sup>2</sup> and I defined a computational cell size of 5x5m. My computer takes so long time in no responding. Someone knows&nbsp;if there is a limitation on the 2D mesh size?</p><p>Thank you,</p><p>Best regards,</p><p>Sara</p> http://q2a.rivergis.com//660/limit-size-of-the-computational-mesh Thu, 03 Jan 2019 19:27:21 +0000 Error 2D mesh generation http://q2a.rivergis.com//650/error-2d-mesh-generation <p>Hi,</p><p>I am trying to generate the 2D mesh for a model in HEC-RAS. I draw the 2D area and a breakline and I have the following&nbsp;error when I am trying to generate it:</p><p></p><p><strong><span style="color:#FF0000">Creating computational points for 2D flow areas</span></strong></p><p><strong><span style="color:#FF0000">Creating regular mesh points...</span></strong></p><p><strong><span style="color:#FF0000">InternalError('Operation on mixed SRID geometries\nCONTEXT: SQL function "makegrid" statement 1\n')</span></strong></p><p><strong><span style="color:#FF0000">Process aborted!</span></strong></p><p><strong><span style="color:#FF0000">DataError('Geometry SRID (4326) does not match column SRID (32651)\n')</span></strong></p><p><strong><span style="color:#FF0000">Process aborted!</span></strong></p><p><strong><span style="color:#FF0000">ProgrammingError('relation "jalaur3.BreakLines2d_m" does not exist\nLINE 6: "jalaur3"."BreakLines2d_m")\n ^\n')</span></strong></p><p><strong><span style="color:#FF0000">Process aborted!</span></strong></p><p><strong><span style="color:#FF0000">Creating mesh points along structures...</span></strong></p><p><strong><span style="color:#FF0000">ProgrammingError('relation "jalaur3.BreakLines2d_m" does not exist\nLINE 8: "jalaur3"."BreakLines2d_m" AS b,\n ^\n')</span></strong></p><p><strong><span style="color:#FF0000">Process aborted!</span></strong></p><p><strong><span style="color:#FF0000">ProgrammingError('relation "jalaur3.BreakLines2d_m" does not exist\nLINE 10: "jalaur3"."BreakLines2d_m";\n ^\n')</span></strong></p><p>Someone knows how to solve this issue?</p><p>Thank you,</p><p>Regards,</p><p>Sara</p> http://q2a.rivergis.com//650/error-2d-mesh-generation Thu, 20 Dec 2018 07:00:16 +0000 Error in 2D mesh generation http://q2a.rivergis.com//649/error-in-2d-mesh-generation <p>Hello,</p><p></p><p>When I pressed the bottom generation of 2D mesh points I have the following error:</p><p></p><p>Creating regular mesh points...</p><p><strong><span style="color:#FF0000">InternalError('Operation on mixed SRID geometries\nCONTEXT: SQL function "makegrid" statement 1\n')</span></strong></p><p><strong><span style="color:#FF0000">Process aborted!</span></strong></p><p></p><p>Do you know how to solve this problem?</p><p>Regards,</p><p>Sara</p> http://q2a.rivergis.com//649/error-in-2d-mesh-generation Wed, 19 Dec 2018 19:03:58 +0000 Hi! I'm novice. Can someone help me to install rivergis? I can't found this plugin in the official plugins repository. http://q2a.rivergis.com//626/someone-rivergis-official-repository http://q2a.rivergis.com//626/someone-rivergis-official-repository Wed, 21 Nov 2018 13:47:29 +0000 Mac compatibility? http://q2a.rivergis.com//620/mac-compatibility Can RiverGIS be used in Mac QGIS? I'm running QGIS 2.18 on macOS 10.13.6 (HighSierra). http://q2a.rivergis.com//620/mac-compatibility Wed, 14 Nov 2018 07:07:53 +0000 Could not editor and create PostGIS extensions http://q2a.rivergis.com//594/could-editor-create-postgis-extensions <p><img alt="" src="http://127.0.0.1:49775/browser/"><span style="font-family:times new roman,times,serif"><span style="font-size:16px">What should I do in situation?&nbsp; I could not <span style="background-color:transparent; color:rgb(64, 64, 64)">editor and create </span>PostGIS<span style="background-color:transparent; color:rgb(64, 64, 64)"> extensions for the database.&nbsp;</span>Massage shown below.</span></span><br><img style="float:left" alt="" src="https://drive.google.com/file/d/1N48xejxEgUpDohOuBOZDRI1IUxt9DoeI/view?usp=sharing"></p><p></p><table style="height:769.08px; width:1660.26px"><tbody><tr><td style="vertical-align:top"><p><span style="font-size:16px"><span style="font-family:times new roman,times,serif">ERROR:&nbsp; could not open extension control file "C:/Program Files/PostgreSQL/10/share/extension/postgis.control": No such file or directory<br>SQL state: 58P01</span></span></p><p></p><p></p></td></tr></tbody></table> http://q2a.rivergis.com//594/could-editor-create-postgis-extensions Thu, 11 Oct 2018 07:19:07 +0000 No elevation data extracted http://q2a.rivergis.com//593/no-elevation-data-extracted Everything is fine until I extract elevations (RAS Geometry --&gt; Elevations), then I get:<br /> <br /> DataError('step size cannot equal zero\n',)<br /> <br /> Process aborted!<br /> <br /> I made sure CRS is the same for all layers, no intersecting xscutlines, DTM raster (ASTER GDEM tif) selected under Options. Don't know what else to try. Help would be appreciated. http://q2a.rivergis.com//593/no-elevation-data-extracted Tue, 09 Oct 2018 10:47:22 +0000 Export elevations as feet instead of meters? http://q2a.rivergis.com//544/export-elevations-feet-instead-meters USGS NED DEMs all present elevation in meters. This appears to cause problems in HEC-RAS when the rest of your project is in feet. It looks like all of the (expensive) alternatives to RiverGIS have an option for converting to feet as part of the creation of an export file. I'm not finding this in RiverGIS.<br /> <br /> You can work around the issue (once you realize it exists) by using:<br /> HEC_RAS -&gt; Edit -&gt; Geometric Data Editor -&gt; Htab Param. -&gt; (select) -&gt; Multiply Factor ...<br /> Select &quot;All Rivers&quot;, select the elevation column by clicking its label, and multiply by a factor of 3.280833.<br /> <br /> But since RiverGIS claims to make a file ready for import to HEC-RAS, maybe it could handle this task as well? As an option of course, in case someone really does have all the rest of their elevation data in meters... http://q2a.rivergis.com//544/export-elevations-feet-instead-meters Fri, 13 Jul 2018 05:57:28 +0000 Złe genrowanie punktów przekroi http://q2a.rivergis.com//540/zle-genrowanie-punktow-przekroi <p>Witam</p><p>Chciałem zwrócić uwagę na błędne działanie narzędzia w pewnych sytuacjach co może prowadzić do zupełnie nieprzydatnych w modelowaniu hydraulicznym przekroi, szczególnie w małych ciekach.</p><p>1. W fazie pierwszej generowałem przekroje wprost z NMT. Narzędzie chyba domyślnie przyjmuje odległość punktów w przekroju 1m na sztywno licząc od lewej strony przekroju. Niestety jeśli przekroje idą po skosie do rastra o rozdzielczości 1m, co praktycznie jest codziennością, to długość wzdłuż linii na jednym rastrze jest większa niż 1m. Przy takim założeniu działania narzędzia mogą powstać dwa punkty na jednym rastrze, a nawet może ono zupełnie pominąć niektóre rastry - te których narożniki tylko znajdą się na linii. Przykład poniżej na rysunku, gdzie został pominięty raster o rzędnej 258.54.</p><p><img alt="" src="http://q2a.rivergis.com//?qa=blob&amp;qa_blobid=12397805124296719042" style="height:258px; width:600px"></p><p>W efekcie dostajemy przekrój o nierzeczywistych parametrach. Poniżej porównanie takiego przekroju oraz przekroju wykonanego za pomocą wtyczki do QGIS Profile Tool.</p><p><img alt="" src="http://q2a.rivergis.com//?qa=blob&amp;qa_blobid=9265971380094328046" style="height:252px; width:600px"></p><p></p><p>Czy nie należało by w związku z tym czegoś tutaj zmienić? Możliwość wyboru zagęszczenia punktów?</p><p></p><p>2. Druga sprawa. Dodawanie punktów pomiarowych do przekroju. W tym samym przekroju dodawano wybrane punkty pomiarowe. Zakres wybranych punktów określa poligon. Jak widać punkty są zmierzone szerzej niż przekrój ale nie wszystkie są potrzebne. Punkty czerwone to te same, które poprzednio wygenerował RiverGIS. Punkty żółte to pomiar geodezyjny. Poligon pozwala wybrać punkty które znajdują się tylko w jego obszarze. W efekcie powstały nowe punkty - kolor niebieski. Jak widać wszystkie punkty geodezyjne w obszarze poligonu zostały uwzględnione a pozostałe nie. Natomiast dlaczego zostały usunięte punkty z NMT w obrysowanym na czerwono obszarze i w efekcie początek przekroju przesunął się, a sam przekrój przez to skrócił się o 2.354m ? Efekt widoczny poniżej.</p><p><img alt="" src="http://q2a.rivergis.com//?qa=blob&amp;qa_blobid=4765159805385826271" style="height:293px; width:600px"></p><p></p><p><img alt="" src="http://q2a.rivergis.com//?qa=blob&amp;qa_blobid=16854627561382987047" style="height:252px; width:600px"></p><p>Pozdrawiam</p><p>A. Ś.</p> http://q2a.rivergis.com//540/zle-genrowanie-punktow-przekroi Tue, 10 Jul 2018 20:54:34 +0000 line_locate_point: 2st arg isn't a point\n - Again... http://q2a.rivergis.com//522/linelocatepoint-isnt-point-again <p>I'm so close (I think) to exporting a usable file, except I can't get the stationing into it:</p><blockquote><p>&nbsp;&nbsp; CROSS-SECTION:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STREAM ID:Forsythe Creek<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; REACH ID:2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATION:None<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NODE NAME:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BANK POSITIONS: None, None<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; REACH LENGTHS: None, None, None<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NVALUES:<br>&nbsp;&nbsp; LEVEE POSITIONS:<br>&nbsp;&nbsp; INEFFECTIVE POSITIONS:<br>&nbsp;&nbsp; BLOCKED POSITIONS:<br>&nbsp;&nbsp; CUT LINE:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214410.26143986, 2222433.82224242<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214375.33004066, 2222527.52281525<br>&nbsp;&nbsp; SURFACE LINE:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214410.26143986, 2222433.82224242, 217.22<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214401.17927607, 2222458.18439136, 214.05<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214391.74779828, 2222483.48354602, 212.01<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214382.3163205, 2222508.78270069, 213.99<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6214375.33004066, 2222527.52281525, 213.99<br>&nbsp;&nbsp; END:</p></blockquote><p>When I try, I get:</p><blockquote><p>Calculating cross-sections stationing...<br>InternalError("line_locate_point: 2st arg isn't a point\n",)<br>Process aborted!</p><p>Calculating cross-sections banks stations...<br>Done.</p><p>Calculating cross-sections distances to the next cross-section downstream ...<br>InternalError('line_locate_point: 2st arg isn\'t a point\nCONTEXT:&nbsp; SQL statement "SELECT\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (1 - ST_LineLocatePoint(path.geom, ST_Intersection(r.geom, path.geom))) * ST_Length(path.geom)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "ridge1"."Flowpaths" AS path\n&nbsp;&nbsp;&nbsp; WHERE\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path."LineType" = \'Channel\' AND\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ST_Intersects(r.geom, path.geom)"\nPL/pgSQL function ridge1.downstream_reach_lengths() line 11 at SQL statement\n',)<br>Process aborted!<br>XSCutLines already exists inside RiverGIS registry.<br>Left flowpaths done.<br>XSCutLines already exists inside RiverGIS registry.<br>Right flowpaths done.<br>DTMs already exists inside RiverGIS registry.<br>XSSurface already exists inside RiverGIS registry.<br>XSCutLines already exists inside RiverGIS registry.</p><p>Probing DTM along XSCutLines...<br>Done</p></blockquote><p>And HEC-RAS crashes when I import the result and try to select Cross Sections and IB Nodes. It finds nothing for "All Rivers". If I manually select only one Reach there, the Import River: &lt;name&gt; and "(All Reaches)" appear, but I instantly (before any data appears) get an error dialog:<br>---<br>Run-time error '9':<br>Subscript out of range<br>---<br>Dismiss the error and the whole program is gone.</p><p>I found <a rel="nofollow" href="http://q2a.rivergis.com/119/problem-calculating-bank-stations">http://q2a.rivergis.com/119/problem-calculating-bank-stations</a></p><p>And I did have overlapping cutlines on some kinky parts of my stream. But now I have spaced them out and verified none overlap, even at stream junctions, and I still get the errors.</p><p>I also found <a rel="nofollow" href="http://q2a.rivergis.com/414/calculating-cross-section-stationing">http://q2a.rivergis.com/414/calculating-cross-section-stationing</a></p><p>Which is more like my problem, but has no answers or comments.</p><p>I don't remember seeing those errors before, but my earlier attempts made the same kind of output files with no stationing, so maybe I just missed them.</p><p>Looking at my flowpaths layer, its table is just "1, Channel, 2, Channel" - I see the LineType = Channel part, but no data there...&nbsp; But it draws the stream on the map, so there must be data somewhere...&nbsp;</p><p>I guess I'm rambling...&nbsp; Would appreciate help with this!</p><p>Loren</p><p></p><p></p><p></p> http://q2a.rivergis.com//522/linelocatepoint-isnt-point-again Sun, 24 Jun 2018 15:44:50 +0000 box - 'NoneType' object has no attribute 'index' while exporting HEC-RAS http://q2a.rivergis.com//517/nonetype-object-attribute-exporting <p>I've progressed past several more bugs in other software, and I'm back to RiverGIS, and apparently ready to export my HEC-RAS file. But I get this:</p><p>AttributeError: 'NoneType' object has no attribute 'index'</p><p>I found <a rel="nofollow" href="http://q2a.rivergis.com/153/error-python-code-creating-import-file?show=153#q153">http://q2a.rivergis.com/153/error-python-code-creating-import-file?show=153#q153</a></p><p>"As a workaround, you could create a dummy 1D reach with 2 xsections to enable the export to SDF."</p><p>But I'm still learning the 1D process. As far as I know I have pure 1D CrossSections. But I just noticed the CrossSections are in the "PROFILES" shapefiles that SAGA made. My RiverGIS XSCutLines layer has no data.</p><p>So I used Database -&gt; Import Layers...&nbsp; and selected my PROFILES file. The QGIS "Show feature count" option still shows '0' for XSCutLines, but now it draws my cutlines on the map. And the export works! At least it makes a big file with appropriate-looking data in it:</p><blockquote><p>#This file is generated by RiverGIS, a QGIS plugin (<a href="http://rivergis.com" rel="nofollow">http://rivergis.com</a>)<br>BEGIN HEADER:<br>&nbsp;&nbsp; DTM TYPE: GRID<br>&nbsp;&nbsp; DTM:<br>&nbsp;&nbsp; STREAM LAYER: rivergis@127.0.0.1/ridge1/StreamCenterlines<br>&nbsp;&nbsp; NUMBER OF REACHES: 3<br>&nbsp;&nbsp; CROSS-SECTION LAYER: rivergis@127.0.0.1/ridge1/XSCutLines<br>&nbsp;&nbsp; NUMBER OF CROSS-SECTIONS: 1435<br>&nbsp;&nbsp; MAP PROJECTION:<br>&nbsp;&nbsp; PROJECTION ZONE:<br>&nbsp;&nbsp; DATUM:<br>&nbsp;&nbsp; VERTICAL DATUM:<br>&nbsp;&nbsp; BEGIN SPATIAL EXTENT:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XMIN: 6182619.17887215<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YMIN: 2218322.56405207<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XMAX: 6220726.92902117<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YMAX: 2252061.87504029<br>&nbsp;&nbsp; END SPATIAL EXTENT:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNITS: FEET<br>END HEADER:</p></blockquote><p>So I guess I've answered my own question. Guess I'll leave this here in case it might help someone else...&nbsp;</p><p></p><p>Still, how can an empty data file cause Python to not know the properties of a "box"?</p><blockquote><p>\rivergis\ras_gis_import.py<br>...</p><p>&nbsp;&nbsp; def spatial_extent(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry = 'SELECT ST_Extent(geom) FROM "{0}"."XSCutLines";'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry = qry.format(self.schema)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; box = self.rgis.rdb.run_query(qry, fetch=True)[0][0]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; box_min = box[box.index('(')+1:box.index(',')].split()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; box_max = box[box.index(',')+1:box.index(')')].split()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext = 'XMIN: {0}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YMIN: {1}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XMAX: {2}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YMAX: {3}\n&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; se = ext.format(box_min[0], box_min[1], box_max[0], box_max[1])<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if self.rgis.DEBUG:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.rgis.addInfo(se)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return se</p></blockquote><p>The only other place I see "box" is here (only the text would copy):</p><blockquote><p>\rivergis\__pycache__\ras_gis_import.cpython-36.pyc<br>...<br>Nz/SELECT ST_Extent(geom) FROM "{0}"."XSCutLines";T)<br>z=XMIN: {0}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YMIN: {1}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XMAX: {2}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YMAX: {3}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; boxZbox_minZbox_max</p></blockquote><p>I know barely enough Python to be dangerous...&nbsp; But the current message looks like "box" needs to be defined somewhere, and it isn't. Except really it appears the problem is an empty input line, not an undefined variable...&nbsp; Maybe the routine could check for my empty data file and put up a more helpful message?</p><p></p> http://q2a.rivergis.com//517/nonetype-object-attribute-exporting Thu, 21 Jun 2018 06:55:22 +0000 Imports Stream Centerlines, no errors, but only two Endpoints show, at 0,0 ? http://q2a.rivergis.com//508/imports-stream-centerlines-endpoints <p>I have a 63 node river line in my QGIS project, that looks good on the screen and follows the rules for numbering in the downstream direction. Names are unique and junctions match perfectly (though I'm only trying to import the first reach right now). It seems to import:</p><blockquote><p>Import data into RAS PostGIS tables...</p><p></p><p>Importing data from Stream, Walker Creek...</p><p>OK</p><p>Imported layers:</p><p>Stream Centerlines</p><p><br>Building stream centerlines topology...</p><p>Done.</p><p><br>Calculating river reach(es) lengths and their end stations...</p><p>Done.</p></blockquote><p>But in the new PostGIS layer there are only two nodes, and nothing is drawn on the screen.</p><blockquote><p>Encoding<br>System<br>Geometry<br>Line (LineString)<br>CRS<br>EPSG:2226 - NAD83 / California zone 2 (ftUS) - Projected<br>Extent<br>-123.3397666000000044,39.3146324000000007 : -123.3133907999999934,39.3210203000000007<br>Unit<br>feet<br>Feature count<br>2&nbsp; --&gt; But Layers -&gt; Show Feature Count says 0 ???</p></blockquote><p>The new extent lat,lon matches the begin and end nodes of the input file exactly. But where are my intermediate points?</p><p>Wait! I'm not sure how, but suddenly my screen shows the River name and two superimposed Endpoints with numbers 1, 2&nbsp; - all at Coordinates 0,0! Zoom to Layer won't take me back there if I move off a ways...&nbsp; But as you can see above, the file includes the proper coordinates and CRS. Some parts of my import file are coming in but others aren't...&nbsp;</p><p>I'm new to QGIS 3.0.3 and RiverGIS 3.0, so maybe I'm doing something stupid. Or maybe the ~6000 lines of Python errors I get on QGIS startup are leaving problems for me. Or maybe Windows 10 64-bit is not well tested...&nbsp;</p><p>Any clues would be most welcome!</p><p></p> http://q2a.rivergis.com//508/imports-stream-centerlines-endpoints Thu, 14 Jun 2018 06:37:50 +0000 RiverGIS not working http://q2a.rivergis.com//494/rivergis-not-working Hi, I have installed the RiverGIS extension under QGIS 3.0.3. All buttons are gray and inactive. I cannot chose from database connections nor can I create new ones. I have reinstalled the extension, but this did not help.<br /> <br /> Is there a fix for this problem? http://q2a.rivergis.com//494/rivergis-not-working Mon, 28 May 2018 09:36:24 +0000 Once I finish the xscutlines atributes (all) no data is extracted in the xscutlines data base tables attributes. http://q2a.rivergis.com//430/xscutlines-xscutlines-attributes No left bank <br /> <br /> no right bank<br /> <br /> no LLenght<br /> <br /> no RLenght<br /> <br /> no CHLenght<br /> <br /> Other data are ok. http://q2a.rivergis.com//430/xscutlines-xscutlines-attributes Sun, 06 May 2018 12:27:49 +0000 Error calculating cross-section stationing http://q2a.rivergis.com//414/error-calculating-section-stationing I keep getting the following error when I try to calculate cross-section stationing:<br /> <br /> &quot;Calculating cross-sections stationing...<br /> <br /> InternalError(&quot;line_locate_point: 2st arg isn't a point\n&quot;,)&quot;<br /> <br /> What could cause this error? &nbsp;I modeled two other streams using the exact same process as on this one without issue. &nbsp;Stream centerlines, cross-sections, and flowpaths were all drawn by hand in the correct direction. &nbsp;The latter two were drawn, deleted, and then redrawn, yet the issue persists. &nbsp;Also, cross-sections intersect flowpath lines only once.<br /> <br /> I'm using QGIS 2.18.17, PostgreSQL 10.3, PostGIS 2.4.3, and Windows 10. http://q2a.rivergis.com//414/error-calculating-section-stationing Sun, 06 May 2018 12:26:49 +0000 ProgrammingError("ERROR: type \xc2\xab geometry \xc2\xbb does not exist http://q2a.rivergis.com//445/programmingerror-error-geometry-exist I have a similar error<br /> <br /> **** ProgrammingError(&quot;ERROR: &nbsp;type \xc2\xab geometry \xc2\xbb &nbsp;does not exist \nLINE 3: geom geometry(LINESTRING, 21781),\n ^\n&quot;,)<br /> <br /> Process aborted! ******<br /> <br /> The number 21781 is the projection (CH1903)<br /> <br /> ... but Postgis and Postgis topography are already installed <br /> <br /> Could it be that this projection is unsupported by RiverGIS?<br /> <br /> Thank in advance for help http://q2a.rivergis.com//445/programmingerror-error-geometry-exist Mon, 16 Apr 2018 12:06:27 +0000 Compatibility QGIS3.0 http://q2a.rivergis.com//400/compatibility-qgis3-0 Hi,<br /> <br /> With the Qgis 3.0 new version, the plugin RiverGis doesn't funcion... Do you know if there is an issue?<br /> <br /> Thanks a lot ! http://q2a.rivergis.com//400/compatibility-qgis3-0 Thu, 01 Mar 2018 14:20:30 +0000 Problem with RiverGIS DB Connection http://q2a.rivergis.com//388/problem-with-rivergis-db-connection <p>I have a problem very similar to the one here:&nbsp;<a rel="nofollow" href="http://q2a.rivergis.com/81/problem-with-db-connection">http://q2a.rivergis.com/81/problem-with-db-connection</a>&nbsp;However, there is no solution to the problem in that question. I have used pgAdmin to set up a database with PostGIS spatial extensions. I can connect to my databases with DB Manager and see all my schemas. However, I cannot connect to these databases in RiverGIS. All databases that I would like to use show up in the "DB Connection" drop-down, but after selecting one of them, no schema show up. Additionally, a python error is triggered, which I have included below.&nbsp;When I click the blank default schema, I am able to ask RiverGIS to refresh the connections list. However, RiverGIS then prints that it is unable to disconnect from the previous database because there is no opened connection. The previous user said that they discovered that the problem was a conflict in the name of the connection- what exactly do I need to change?</p><p>Thank you!</p><p></p><p></p><p>1 Traceback (most recent call last):</p><p>File "C:/Users/Caleb/.qgis2/python/plugins\rivergis\rivergis.py", line 268, in connChanged</p><p>self.rdb.connect_pg()</p><p>File "C:/Users/Caleb/.qgis2/python/plugins\rivergis\river_database.py", line 81, in connect_pg</p><p>self.rgis.addInfo(msg)</p><p>File "C:/Users/Caleb/.qgis2/python/plugins\rivergis\rivergis.py", line 195, in addInfo</p><p>self.ui.textEdit.append(text)</p><p>TypeError: QTextEdit.append(QString): argument 1 has unexpected type 'OperationalError'</p> http://q2a.rivergis.com//388/problem-with-rivergis-db-connection Fri, 23 Feb 2018 12:00:03 +0000 XS elevations not extracted http://q2a.rivergis.com//370/xs-elevations-not-extracted After running &quot;XS Cutlines Attributes -&gt; Elevations&quot;, there is no XS Surface Table, and the cross section profiles are all blank when I export to HEC-RAS. &nbsp;It seems like the DEM isn't being sampled, but I'm not getting any error messages. &nbsp;Any insights would be greatly appreciated. http://q2a.rivergis.com//370/xs-elevations-not-extracted Thu, 11 Jan 2018 12:26:46 +0000 Updta elevation http://q2a.rivergis.com//367/updta-elevation Hi all,<br /> <br /> Does someone manage to update élévation using Rivergis? <br /> <br /> When I Try to use it, it creates a shapefile with all my points but it doesnt change thé élévation ou thé cross section. <br /> <br /> Someone knows how fix it? <br /> <br /> Charles http://q2a.rivergis.com//367/updta-elevation Mon, 08 Jan 2018 07:17:27 +0000 Problem assigning DEM elevation - ASCII 8 http://q2a.rivergis.com//360/problem-assigning-elevation-ascii <p>I have a problem when assigning the elevation values from the DEM to the shapes in QGIS. I have this message back:</p><blockquote><p>Traceback (most recent call last):</p><p>File "C:/Users/David/.qgis2/python/plugins\rivergis\rivergis.py", line 83, in &lt;lambda&gt;</p><p>self.ui.actionRASXSRiverReachNames.triggered.connect(lambda: r1d.ras1dXSRiverReachNames(self))</p><p>File "C:/Users/David/.qgis2/python/plugins\rivergis\ras1dFunctions.py", line 129, in ras1dXSElevations</p><p>prepare_DTMs(rgis)</p><p>File "C:/Users/David/.qgis2/python/plugins\rivergis\rasElevations.py", line 45, in prepare_DTMs</p><p>uri = '\'{0}\''.format(rlayer.dataProvider().dataSourceUri())</p><p>UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 58: ordinal not in range(128)</p></blockquote><p>I dont know how to solve this issue. Thanks for your help.</p><p></p> http://q2a.rivergis.com//360/problem-assigning-elevation-ascii Wed, 03 Jan 2018 19:29:33 +0000 Problems with Stream centerlines Lenghts http://q2a.rivergis.com//356/problems-stream-centerlines-lenghts Hi,<br /> <br /> i'm a new user of RiverGis.<br /> <br /> I try to follow the documentation but i find the first problems in building the River network.<br /> <br /> I create Database and &nbsp;the database tables, in particulat the &quot;StreamCenterlines&quot; . I edit the tables drawing the river.<br /> <br /> Than i use the Topology tool and it work correctly. Instead the tool for River Lengths/Stations doesn't work.<br /> <br /> The Fields ReachLen, FromSta e ToSta are empty.<br /> <br /> can anyone help me?<br /> <br /> thanks http://q2a.rivergis.com//356/problems-stream-centerlines-lenghts Fri, 29 Dec 2017 16:33:29 +0000 River Feature Class - ID to and ID from of polylines http://q2a.rivergis.com//244/river-feature-class-from-polylines <table><tbody><tr><td><div><div></div></div></td><td><div><div><p>Hello,</p><p>I am working with HecGeoRAS trying to create my feature classes. I started with the RIVER feature class. I am working with a big river network of approximately 359 reaches. I have the designed of this network using polylines in a shp file and I am trying to introduce these data in the attribute table of the RIVER feature class.</p><p>I am looking for a function in ArcMap 10.3.1 that recognise the ID from and ID to for each of the polylines, because make it manually is very time consuming.</p><p>I hope you understand my question.</p><p>Thanks!</p><p>Sara</p></div></div></td></tr></tbody></table> http://q2a.rivergis.com//244/river-feature-class-from-polylines Tue, 15 Aug 2017 20:02:21 +0000 Errors when Exporting due to Conflicting CRS http://q2a.rivergis.com//230/errors-when-exporting-conflicting Hi <br /> <br /> When I try to export the model from QGIS I get the following error: WARNING! Differences between &quot;Bridges&quot; table SRID (999469) and project CRS (320002147).<br /> <br /> This error is for all layers<br /> <br /> I am trying to use the South Africa Projection : Zangi:HBK019<br /> <br /> Thanks<br /> <br /> Lloyd http://q2a.rivergis.com//230/errors-when-exporting-conflicting Wed, 02 Aug 2017 18:23:33 +0000 Error when I'm trying startup Options http://q2a.rivergis.com//179/error-when-im-trying-startup-options <p>When I'm running Settings/Options&nbsp;I get an error.</p><blockquote><p>2017-06-14T11:11:01 1 Traceback (most recent call last):</p><p>File "C:/Users/USER/.qgis2/python/plugins\rivergis\rivergis.py", line 344, in options</p><p>dlg = DlgSettings(self, widget=widget)</p><p>File "C:/Users/USER/.qgis2/python/plugins\rivergis\dlg_settings.py", line 58, in __init__</p><p>item = QStandardItem('{0}'.format(layer.name())) #layerId</p><p>UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 4: ordinal not in range(128)</p></blockquote><p>I have found one raster layer with polish characters but it is WMS inactive layer (Geoportal2 - Działki/Numery działek). The problem is fixed now but I wrote this question because it might be helpful to improve the plugin or to fix similar errors.</p> http://q2a.rivergis.com//179/error-when-im-trying-startup-options Wed, 14 Jun 2017 09:46:24 +0000 Problem z tworzeniem "River Data Base Tables" http://q2a.rivergis.com//169/problem-tworzeniem-river-data-tables <p>Dzień dobry,</p><p>Próbując utworzyć tabele baz danych rzeki, napotykam na następujące błędy:</p><pre><span style="font-size:11px">"<strong>Running Create RAS Layers and Tables...</strong></span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(POLYGON, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">Storage Areas - failure! None</span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(POLYGON, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">Ineffective Flow Areas - failure! None</span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(LINESTRING, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">Stream Centerlines - failure! None</span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(LINESTRING, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">XS Cut Lines - failure! None</span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(LINESTRING, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">Flow Path Centerlines - failure! None</span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(LINESTRING, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">Bank Lines - failure! None</span> <span style="font-size:11px">ProgrammingError('B\xc5\x81\xc4\x84D: typ "geometry" nie istnieje\nLINE 3: geom geometry(LINESTRING, 102728),\n ^\n',)</span> <span style="font-size:11px">Process aborted!</span> <span style="font-size:11px">Levee Alignment - failure! None"</span></pre><p><span style="font-size:11px">......itp</span></p><p><span style="font-size:12px">W czym może tkwić problem?</span></p><p><span style="font-size:12px">Z góry dziękuję za odpowiedź</span></p><p></p><p></p><p></p> http://q2a.rivergis.com//169/problem-tworzeniem-river-data-tables Tue, 06 Jun 2017 13:44:59 +0000 Unable to import StreamCenterlines http://q2a.rivergis.com//167/unable-to-import-streamcenterlines <p>I try to import StreamCenterlines from a shapefile open in QGIS and I always get the same error</p><p><em>Importing data from axe...</em></p><p><em>DataError('ERREUR: Geometry has Z dimension but column does not\n',)</em></p> http://q2a.rivergis.com//167/unable-to-import-streamcenterlines Wed, 24 May 2017 08:55:22 +0000 unable to connect my database correctly http://q2a.rivergis.com//163/unable-connect-database-correctly <p><span style="color:#ff0000">Une erreur est survenue lors de l'éxécution du code Python:</span></p><p><span style="font-size:large">TypeError: QTextEdit.append(QString): argument 1 has unexpected type 'OperationalError' </span></p><pre><span style="font-family:courier new,courier">Traceback (most recent call last): &nbsp; File "D:/DATA/m.chantepie/.qgis2/python/plugins\rivergis\rivergis.py", line 268, in connChanged &nbsp; &nbsp; self.rdb.connect_pg() &nbsp; File "D:/DATA/m.chantepie/.qgis2/python/plugins\rivergis\river_database.py", line 81, in connect_pg &nbsp; &nbsp; self.rgis.addInfo(msg) &nbsp; File "D:/DATA/m.chantepie/.qgis2/python/plugins\rivergis\rivergis.py", line 195, in addInfo &nbsp; &nbsp; self.ui.textEdit.append(text) TypeError: QTextEdit.append(QString): argument 1 has unexpected type 'OperationalError' </span></pre><p><br>Version de Python : 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]<br>Version de QGIS : 2.18.6 Las Palmas, 5f369b0</p><p>Chemin Python :</p><ul><li>C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\processing</li><li>C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python</li><li>D:/DATA/m.chantepie/.qgis2/python</li><li>D:/DATA/m.chantepie/.qgis2/python/plugins</li><li>C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins</li><li>C:\PROGRA~1\QGIS2~1.18\bin\python27.zip</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\plat-win</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\lib-tk</li><li>C:\PROGRA~1\QGIS2~1.18\bin</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\PIL</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32\lib</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Pythonwin</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg</li><li>D:/DATA/m.chantepie/.qgis2//python</li><li>D:/DATA/m.chantepie/Desktop/tutorial rivergis/BaldEagle_example</li></ul> http://q2a.rivergis.com//163/unable-connect-database-correctly Thu, 11 May 2017 08:57:00 +0000 Can River GIS support junctions of two breaklines for 2D channel delineation? http://q2a.rivergis.com//162/junctions-breaklines-delineation Can River GIS support junctions of two breaklines for 2D channel delineation?<br /> <br /> I would like to model two rivers with a confluence. &nbsp;Can I snap my breaklines together to make two curvilinear meshes join?<br /> <br /> Thanks! http://q2a.rivergis.com//162/junctions-breaklines-delineation Mon, 01 May 2017 23:05:04 +0000 2D mesh geometry import issue for large meshes http://q2a.rivergis.com//155/geometry-import-issue-large-meshes <p>I've been successfully using RiverGIS for mesh creation, but if a mesh includes too many cells the HEC-RAS Geometry import fails. I'm not sure where the threshold is, but it definitely does not work at around 250,000 cells. This is a problem for me, as I often work with large 2D models.&nbsp;</p><p>What happens is that the cells that were created along the breaklines are absent. Here's an example screenshot where the regular grid imported, but the curvilinear portion within the channel fails.&nbsp;</p><p><img alt="" src="http://q2a.rivergis.com//?qa=blob&amp;qa_blobid=7295624933435576220" style="height:296px; width:600px"></p><p>Anyone else notice this issue? What is going on here?</p><p>FYI, I cross-posted this issue to github:&nbsp;<a rel="nofollow" href="https://github.com/erpas/rgis/issues/28">https://github.com/erpas/rgis/issues/28</a>&nbsp;</p><p>Thanks,<br>-Matt</p> http://q2a.rivergis.com//155/geometry-import-issue-large-meshes Thu, 20 Apr 2017 19:23:33 +0000 Error in Python code creating RAS GIS import file http://q2a.rivergis.com//153/error-python-code-creating-import-file I try to export in HECRAS a model 2D with only three layers: DTM, flowarea2d and 2Dbreaklines.<br /> <br /> I receive an error message at line 137 of code &quot;ras_gis_import.py&quot;:<br /> <br /> 137, in spatial_extent &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;box_min = box[box.index('(')+1:box.index(',')].split()<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AttributeError: 'NoneType' object has no attribute 'index' http://q2a.rivergis.com//153/error-python-code-creating-import-file Sat, 15 Apr 2017 07:44:27 +0000 Error with DTM http://q2a.rivergis.com//147/error-with-dtm <p>Hi all,</p><p>I follow the procedure in RiverGIS for geometry but when select the DTM tool show me the following message</p><p><em>Traceback (most recent call last):</em></p><p><em>File "C:/Users/Antonio/.qgis2/python/plugins\rivergis\rivergis.py", line 83, in &lt;lambda&gt;</em></p><p><em>self.ui.actionRASXSElevations.triggered.connect(lambda: r1d.ras1dXSElevations(self))</em></p><p><em>File "C:/Users/Antonio/.qgis2/python/plugins\rivergis\ras1dFunctions.py", line 125, in ras1dXSElevations</em></p><p><em>prepare_DTMs(rgis)</em></p><p><em>File "C:/Users/Antonio/.qgis2/python/plugins\rivergis\rasElevations.py", line 31, in prepare_DTMs</em></p><p><em>rgis.options(rgis.OPT_DTM)</em></p><p><em>File "C:/Users/Antonio/.qgis2/python/plugins\rivergis\rivergis.py", line 344, in options</em></p><p><em>dlg = DlgSettings(self, widget=widget)</em></p><p><em>File "C:/Users/Antonio/.qgis2/python/plugins\rivergis\dlg_settings.py", line 58, in __init__</em></p><p><em>item = QStandardItem('{0}'.format(layer.name())) #layerId</em></p><p><em>UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 17: ordinal not in range(128)</em></p><p></p><p><strong>It's the first time that have this problem. I used RiverGIS to 30/40 geometry without have this problem.</strong></p><p>Regards-</p><p>Antonio</p> http://q2a.rivergis.com//147/error-with-dtm Sat, 18 Mar 2017 07:51:23 +0000 How to enter cross section profile data (xsSurface) from a topographic survey? http://q2a.rivergis.com//143/section-profile-xssurface-topographic <p>Hi - I would like to enter georeferenced cross section profile data from a topographic survey (data not in HEC-RAS format). I have created an 'xsSurface' layer extracted from a DTM using the 'Elevation' tool - I now want to update 'xsSurface' with my elevation values -&nbsp;however, the 'Update Elevations' tool allows you to enter <span style="text-decoration: underline;">elevation values only</span>, but <strong><span style="text-decoration: underline;">not </span>the chainage/station value </strong>(my survey data is not at regular intervals across the CS, like those generated by the 'Elevation' tool).</p><p>How can I enter both the elevation and chainage values for each CS?</p><p>Look forward to your advice.</p><p>Mike</p> http://q2a.rivergis.com//143/section-profile-xssurface-topographic Tue, 28 Feb 2017 18:44:37 +0000 Error in Python code when importing geometry into River Database Tables http://q2a.rivergis.com//140/python-importing-geometry-database <p>Hi - using the 'Baldeagle' data I have created river database tables, however, when I use the 'Import layers into river database tables' tool, I received the errors below.</p><p>The database connection seems okay (am using pgAdmin 4), though I read in another <a rel="nofollow" href="http://q2a.rivergis.com/103/unable-import-layers-unicode-problem">post</a> that you need to create a PostGIS extension - I have used a postgres_fdw' extension since 'postgis' is not available from the dropdown list.</p><p>Can anyone help? Thanks, Mike</p><p><strong>1. Error In the RiverGIS application window:</strong></p><blockquote><p>Import data into RAS PostGIS tables...</p><p>ProgrammingError('type "geometry" does not exist\nLINE 3: geom geometry(LINESTRING, 102728),\n ^\n',)</p><p>Process aborted!</p></blockquote><p><strong>1. Error in a QGIS window:</strong></p><blockquote><p><span style="color:rgb(255, 0, 0)">An error has occurred while executing Python code:</span></p><p><span style="font-size:large">KeyError: 'StreamCenterlines' </span></p><pre><span style="font-family:courier new,courier">Traceback (most recent call last): &nbsp; File "C:/Users/MGreen/.qgis2/python/plugins\rivergis\dlg_rasImportDataIntoRasTables.py", line 298, in acceptDialog &nbsp; &nbsp; self.processLayers(key, data) &nbsp; File "C:/Users/MGreen/.qgis2/python/plugins\rivergis\dlg_rasImportDataIntoRasTables.py", line 280, in processLayers &nbsp; &nbsp; self.rgis.rdb.register[data['className']], KeyError: 'StreamCenterlines' </span></pre><p><br>Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]<br>QGIS version: 2.18.3 Las Palmas, 77b8c3d</p><p><span style="font-size:medium">Python Path:</span></p><ul><li>C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\processing</li><li>C:/Users/MGreen/.qgis2/python/plugins\postgis_geoprocessing</li><li>C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python</li><li>C:/Users/MGreen/.qgis2/python</li><li>C:/Users/MGreen/.qgis2/python/plugins</li><li>C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\bin\python27.zip</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\plat-win</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\lib-tk</li><li>C:\PROGRA~1\QGIS2~1.18\bin</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\PIL</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32\lib</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Pythonwin</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg</li><li>C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg</li><li>C:/Users/MGreen/.qgis2//python</li><li>G:/Anybody/HEC-RAS/RiverGIS/baldeagle</li></ul></blockquote> http://q2a.rivergis.com//140/python-importing-geometry-database Tue, 28 Feb 2017 11:01:37 +0000 Leveepoints' Elevation... http://q2a.rivergis.com//138/leveepoints-elevation Hello everyone,<br /> <br /> Why launching Levees command, Leveepoints Elevation field isn't completed?<br /> <br /> Is or not implemented this function?<br /> <br /> Thanks to anyone could answer<br /> <br /> P.S.<br /> <br /> Congrats for the wonderful plugin. http://q2a.rivergis.com//138/leveepoints-elevation Sun, 12 Feb 2017 00:36:03 +0000 problem exporting sdf file in Ubuntu/Linux http://q2a.rivergis.com//135/problem-exporting-file-ubuntu-linux Dear riverGIS team,<br /> <br /> I tried the procedure you report on your website and everything went smooth in Linux environment (Ubuntu 14.04), from the database creation (which is easier than windows) to computing cross-section elevations, however as I try to export the sdf, the created file resulted without any extension and not loadable in HEC-RAS. HEC-RAS does not seem to recognize anything. Then, I repeated the same procedure using your plugin in QGIS for Windows and magically it works fine. My idea is that the created sdf file in linux might have some problems with encoding, or perhaps some tabs placed in wrong places, I don't know, but this my experience. Unfortunately I can't paste the results here because data are not publishable yet.<br /> <br /> Hope these feedback might help you in further releases, it's a great tool!<br /> <br /> Thanks http://q2a.rivergis.com//135/problem-exporting-file-ubuntu-linux Mon, 06 Feb 2017 11:52:21 +0000 Has anyone tried importing cross-sections in ISIS format to HEC-RAS? http://q2a.rivergis.com//133/anyone-tried-importing-sections-format Hi - I have a large number of river cross sections in ISIS format (.DAT files) which I would like to import into a new HEC-RAS model. I tried manually copying and pasting the ISIS data into .txt files in the HEC-RAS format, however, it did not read the data correctly. Has anyone done this before or could suggest an efficient method? Thanks. http://q2a.rivergis.com//133/anyone-tried-importing-sections-format Mon, 23 Jan 2017 11:36:38 +0000 Apparent problem with calculating stations and nodes http://q2a.rivergis.com//129/apparent-problem-calculating-stations Hello everyone, <br /> <br /> I have been working for a few days on preparing geometry for a model. After countless problems in creating the geometry I decided to simply work on a test, on a mini-section of the river-stream and see if I can successfully create the geometry and import to HEC-RAS. I have re-drawn everything to keep things simple. <br /> <br /> Everything runs fine in RiverGIS, but the geometry for HEC-RAS is empty of any nodes when imported. I checked the XSCutlines shapefile and there is clearly a problem with the Station column which is empty. I also noticed that no EndPoint is created when running the RiverGIS tools. <br /> <br /> I attach a zipped folder with the QGIS file and attached shapefiles/DEM: <a href="https://www.dropbox.com/s/wnb89ph2dostimo/Mini-test%2030.rar?dl=0" rel="nofollow">https://www.dropbox.com/s/wnb89ph2dostimo/Mini-test%2030.rar?dl=0</a> <br /> <br /> Screenshot of the river system in QGIS: <a href="https://www.dropbox.com/s/znxql4yuv0pdh9o/Screenshot%202016-12-01%2013.37.10.png?dl=0" rel="nofollow">https://www.dropbox.com/s/znxql4yuv0pdh9o/Screenshot%202016-12-01%2013.37.10.png?dl=0</a><br /> <br /> Screenshot of the attribute table for XSCutLines: <a href="https://www.dropbox.com/s/ge6h8m4f0s9y1zm/Screenshot%202016-12-01%2013.40.39.png?dl=0" rel="nofollow">https://www.dropbox.com/s/ge6h8m4f0s9y1zm/Screenshot%202016-12-01%2013.40.39.png?dl=0</a><br /> <br /> Screenshot of the HEC-RAS problem when importing (invert # shows zero points): <a href="https://www.dropbox.com/s/bkpljcqe51tk3ti/Screenshot%202016-12-01%2013.39.05.png?dl=0" rel="nofollow">https://www.dropbox.com/s/bkpljcqe51tk3ti/Screenshot%202016-12-01%2013.39.05.png?dl=0</a><br /> <br /> Screenshot 2 of the HEC-RAS problem after importing: <a href="https://www.dropbox.com/s/7gow765x53tuwe1/Screenshot%202016-12-01%2013.39.52.png?dl=0" rel="nofollow">https://www.dropbox.com/s/7gow765x53tuwe1/Screenshot%202016-12-01%2013.39.52.png?dl=0</a> <br /> <br /> Any help would be greatly appreciated, I'm under a tight timeline here... <br /> <br /> Thanks, <br /> <br /> Mix http://q2a.rivergis.com//129/apparent-problem-calculating-stations Thu, 01 Dec 2016 18:43:23 +0000 Unable to create PostGIS extension in pgAdmin http://q2a.rivergis.com//127/unable-create-postgis-extension-pgadmin Hello all,<br /> <br /> I'm following the instructions provided on the RiverGIS website, but have been getting issues right at the start. When I try to create the PostGIS extensions from the SQL query editor, I get the following error message:<br /> <br /> ERROR: &nbsp;could not open extension control file &quot;C:/Program Files/PostgreSQL/9.6/share/extension/postgis.control&quot;: No such file or directory<br /> ********** Error **********<br /> <br /> ERROR: could not open extension control file &quot;C:/Program Files/PostgreSQL/9.6/share/extension/postgis.control&quot;: No such file or directory<br /> SQL state: 58P01<br /> <br /> I have tried the install on two different computers, Windows 10, and keep getting this issue. Can anyone help?<br /> <br /> Thanks,<br /> <br /> Mix http://q2a.rivergis.com//127/unable-create-postgis-extension-pgadmin Fri, 25 Nov 2016 14:46:36 +0000 creating xscutline http://q2a.rivergis.com//125/creating-xscutline <p><span style="background-color:rgb(255, 255, 255); color:rgb(33, 33, 33); font-family:arial,sans-serif; font-size:16px">hi wanted to know if there is a program that performs the xscutline automatically, something similar as the hec-Georas Thank you.</span></p> http://q2a.rivergis.com//125/creating-xscutline Tue, 08 Nov 2016 20:07:57 +0000 Processing Blocked Obstruction with an error http://q2a.rivergis.com//123/processing-blocked-obstruction-error <p>Hi</p><p>Why do I get an error when processing Blocked Obstruction?</p><blockquote><p><strong>Finding blocked obstructions for cross-sections</strong></p><p>DataError('Geometry type (MultiLineString) does not match column type (LineString)\n',)</p><p>Process aborted!</p></blockquote><p></p><p>I've merged buildings crossing XS's and I've deleted buildings when the end of XS was inside building. I have no idea what is wrong.</p><p>My data are <a rel="nofollow" href="https://drive.google.com/file/d/0B-wXLskqBRLObnVFTWN1aUlCbEU/view?usp=sharing">here</a>.</p><p></p><p>Best Regards</p><p>Arek</p> http://q2a.rivergis.com//123/processing-blocked-obstruction-error Sun, 06 Nov 2016 13:38:42 +0000 Hec-Ras computation break down after importing RiverGis geometry and interpolating XS or coping XS http://q2a.rivergis.com//122/computation-importing-interpolating <p>Dear all,</p><p>In Hec-Ras (5.0.1) I am experiencing a geometry computation problem, after importing my geometry generated by RiverGIS, when I extrapolate XS or copy one or more XS and if I DELETE them afterwards then Hec-Ras is no longer able to compute the geometry. The typical situation is when starting the simulation the process freezes for hours on the "<strong>writing geometry</strong>" process at the "<strong>computing XS interpolation surfaces</strong>". My assumption is that Hec-Ras loses the position of the different XS between them when deleting the interpolated XS, I have the intuition that this is related to the georeferenced geometry built from RiverGIS, but I don't really know how and why. Has somebody ever experienced the same kind of problem?</p><p>Any help or comment would be appreciated, thanks.</p> http://q2a.rivergis.com//122/computation-importing-interpolating Thu, 03 Nov 2016 09:08:38 +0000 Problem calculating bank stations http://q2a.rivergis.com//119/problem-calculating-bank-stations I am running the RiverGIS tool and am receiving this error when I try to calculate bank stations.<br /> <br /> Calculating cross-sections banks stations...<br /> <br /> InternalError(&quot;line_locate_point: 2st arg isn't a point\n&quot;,)<br /> <br /> Process aborted!<br /> <br /> Do you know what is causing this.<br /> <br /> Thanks,<br /> <br /> JamesB<br /> <br /> I am running PostGreSQL x64 9.6, qGIS 2.14.1, PostGIS Bundle 2.3 for PostGreSQL x64 9.6 http://q2a.rivergis.com//119/problem-calculating-bank-stations Wed, 02 Nov 2016 00:03:45 +0000