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

UnicodeDecodeError in v.clean tool #28417

Closed
qgib opened this issue Nov 22, 2018 · 1 comment
Closed

UnicodeDecodeError in v.clean tool #28417

qgib opened this issue Nov 22, 2018 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS

Comments

@qgib
Copy link
Contributor

qgib commented Nov 22, 2018

Author Name: Jan Macura (@jmacura)
Original Redmine Issue: 20597
Affected QGIS version: 3.4.1
Redmine category:processing/grass


Hi, I do repeatedly run into this error while trying to do a v.clean of a line layer. I can see that it's an error in decoding of some non-Unicode chars, but don't understand where... in the path? in the input layer attributes? in the code of the tool? or...?

Thanks!

Zpracovávám algoritmus...
Algoritmus 'v.clean' se spouští&nápověda;
Vstupní parametry:
{ '-b' : False, '-c' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001, 'GRASS_OUTPUT_TYPE_PARAMETER' : 2, 'GRASS_REGION_PARAMETER' : None, 'GRASS_SNAP_TOLERANCE_PARAMETER' : 1, 'GRASS_VECTOR_DSCO' : '', 'GRASS_VECTOR_LCO' : '', 'error' : 'C:/Alles/works/etc/edip/sit/geocheck/sit_2018112_errs.gpkg', 'input' : 'C:/Alles/works/etc/edip/sit/sit_20181122.gpkg|layername=sit_20181122', 'output' : 'C:/Alles/works/etc/edip/sit/geocheck/sit_20181122_clean.gpkg', 'threshold' : '1', 'tool' : [1], 'type' : [1] }

g.region n=0.0 s=0.0 e=0.0 w=0.0
v.clean input=vector_5bf6e8cf796a73 type="line" tool="snap" threshold="1" output=outputd9b5a4d3082d431eafa9f0ce0924f9d3 error=errord9b5a4d3082d431eafa9f0ce0924f9d3 --overwrite
v.out.ogr -c type="line" input="outputd9b5a4d3082d431eafa9f0ce0924f9d3" output="C:\Alles\works\etc\edip\sit\geocheck\sit_20181122_clean.gpkg" format="GPKG" --overwrite
v.out.ogr -c type="line" input="errord9b5a4d3082d431eafa9f0ce0924f9d3" output="C:\Alles\works\etc\edip\sit\geocheck\sit_2018112_errs.gpkg" format="GPKG" --overwrite
Starting GRASS GIS...
Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 415, in processAlgorithm
Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", line 372, in executeGrass
for line in iter(proc.stdout.readline, ''):
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 7: invalid continuation byte

Spouštění selhalo po 1.23 sekundách

Načítám výsledné vrstvy
The following layers were not correctly generated.<ul><li>C:/Alles/works/etc/edip/sit/geocheck/sit_20181122_clean.gpkg</li><li>C:/Alles/works/etc/edip/sit/geocheck/sit_2018112_errs.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

@qgib
Copy link
Contributor Author

qgib commented Nov 23, 2018

Author Name: Giovanni Manghi (@gioman)


https://issues.qgis.org/issues/20244


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Nov 23, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS
Projects
None yet
Development

No branches or pull requests

1 participant