Recently we get enormous amount of spam registration. We have closed the registration for new members, sorry...
0 votes
349 views
by

When using the elevation command appear a phyton code error, that says:
 

"UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 28: ordinal not in range(128) 

Traceback (most recent call last):
  File "C:/Users/carhuich/.qgis2/python/plugins\rivergis\rivergis.py", line 83, in
    self.ui.actionRASXSElevations.triggered.connect(lambda: r1d.ras1dXSElevations(self))
  File "C:/Users/carhuich/.qgis2/python/plugins\rivergis\ras1dFunctions.py", line 125, in ras1dXSElevations
    prepare_DTMs(rgis)
  File "C:/Users/carhuich/.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'\xe1' in position 28: ordinal not in range(128)"

 

I remove non-ASCII characters from my files names, directories names and paths, but anyway elevation data is not generated for any cross-section. Can it be associated with my DTM raster?

Best regards,
Carolina.

1 Answer

0 votes
by (3.8k points)

In fact, the non-ASCII character must be in your raster path as it is reported by the prepare_DTMs function. Please, fix your raster(s) path and let us know if you were finally able to run the tool.

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.

Categories

...