Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RiverGIS : Python error for Elevations #37

Open
IFontain opened this issue Aug 22, 2018 · 2 comments
Open

RiverGIS : Python error for Elevations #37

IFontain opened this issue Aug 22, 2018 · 2 comments

Comments

@IFontain
Copy link

Hello,

I am using RiverGIS with QGIS 2.18.14, PostGreQSL 9.5.4 64 bits and postgis.

When I use the option “RAS Geometry / XS Cut Lines Attributes / Elevations” in RIVERGIS, I get the following error message :

“Traceback (most recent call last):
File "C:/Users/POSTE5/.qgis2/python/plugins\rivergis\rivergis.py", line 83, in
self.ui.actionRASXSElevations.triggered.connect(lambda: r1d.ras1dXSElevations(self))
File "C:/Users/POSTE5/.qgis2/python/plugins\rivergis\ras1dFunctions.py", line 125, in ras1dXSElevations
prepare_DTMs(rgis)
File "C:/Users/POSTE5/.qgis2/python/plugins\rivergis\rasElevations.py", line 41, in prepare_DTMs
uri = ''{0}''.format(rlayer.dataProvider().dataSourceUri())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 19: ordinal not in range(128) »

Please note that all the previous options (River reach name, stationing, bank station…) were executed without troubleshooting.

Have you any ideas ?

Thanks for your help.

Best Regards

Isabelle

@erpas
Copy link
Owner

erpas commented Aug 23, 2018

Could you please save your DTM raster so it has no non-ASCII chars in the path?
Best regards

@IFontain
Copy link
Author

Hello, I made the following test : the raster was stored in a directory which name contained 'é'. I renamed it to remove 'é', and now it functions... What's the matter ?

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants