[Qgis-user] Grass V.clean error in 3.4.4 / Mac OSX
Mensio Federico
mensio at ipla.org
Thu Jan 31 04:44:55 PST 2019
Hi everybody,
as some time ago, a problem with v.clean command in Qgis 3.2 (that was
solved), we have a problem with v.clean command in Qgis 3.4.4 in OSX, as
described in the follow (copy/paste of the log).
The solution adopted for version 3.2 is not applicable (setting PATH custom
variable as described in the past).
Algorithm 'v.clean' starting…
Parametri in ingresso:
{ '-b' : False, '-c' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.1,
'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None,
'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '',
'GRASS_VECTOR_LCO' : '', 'error' :
'/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg',
'input' : 'dbname=\'xxxxxx\' host=xxxxx port=xxxxx user=\'xxxxxxx\'
password=\'xxxxxx!\' sslmode=disable key=\'id\' srid=32632
type=MultiPolygon table=\"park\".\"landuse\" (geom) sql=', 'output' :
'/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg',
'threshold' : '1', 'tool' : [1], 'type' : [2,4] }
g.proj -c proj4="+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs"
v.in.ogr min_area=0.1 snap=-1.0
input="/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/970afbcb038f4544a7b8e79aac80cb83/input.shp"
output="vector_5c52eae28db5f2" --overwrite -o
g.region n=5007028.758751524 s=4996721.333720555 e=392101.72814972815
w=383568.4750642354
v.clean input=vector_5c52eae28db5f2 type="boundary,area" tool="snap"
threshold="1" output=output0de114f3cb9942cbb8a039948fd4ead0
error=error0de114f3cb9942cbb8a039948fd4ead0 --overwrite
v.out.ogr -c type="auto" input="output0de114f3cb9942cbb8a039948fd4ead0"
output="/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg"
format="GPKG" --overwrite
v.out.ogr -c type="auto" input="error0de114f3cb9942cbb8a039948fd4ead0"
output="/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg"
format="GPKG" --overwrite
WARNING: Default locale settings are missing. GRASS running with C locale.
Default locale not found, using UTF-8
Traceback (most recent call last):
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 2029, in
<module>
main()
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1880, in
main
set_paths(grass_config_dir=grass_config_dir)
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 622, in
set_paths
os.environ['MANPATH'] = sys_man_path
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py",
line 674, in __setitem__
value = self.encodevalue(value)
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py",
line 744, in encode
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not bytes
WARNING: Default locale settings are missing. GRASS running with C locale.
Default locale not found, using UTF-8
Traceback (most recent call last):
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 2029, in
<module>
main()
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1880, in
main
set_paths(grass_config_dir=grass_config_dir)
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 622, in
set_paths
os.environ['MANPATH'] = sys_man_path
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py",
line 674, in __setitem__
value = self.encodevalue(value)
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py",
line 744, in encode
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not bytes
Esecuzione completata in 0.97 secondi
Risultati:
{'error': <QgsProcessingOutputLayerDefinition
{'sink':/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg,
'createOptions': {'fileEncoding': 'System'}}>,
'output': <QgsProcessingOutputLayerDefinition
{'sink':/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg,
'createOptions': {'fileEncoding': 'System'}}>}
Caricamento layer
I seguenti layers non sono stati caricati
correttamente<ul><li>/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg</li><li>/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg</li></ul>Puoi
verificare il "Pannello dei messaggi" nella finestra principale di QGIS per
trovare maggiori informazioni circa l'esecuzione dell'algoritmo
--
Federico MENSIO
IPLA spa
Corso Casale, 476 - 10132 Torino
Mobile +39.340.06.01.363
TEL +39.011.432.0443 FAX +39.011.89.89.333
mensio at ipla.org - www.ipla.org
-------------------------------------------------------------------------------------
Questa e-mail è personale e i suoi contenuti contengono informazioni
riservate ai destinatari. Pertanto la lettura, copia od altro uso da parte
di altri o qualsiasi altra azione derivante dalla conoscenza di queste
informazioni sono rigorosamente vietate e perseguibili ai sensi del Dlgs
196/03.
Qualora abbiate ricevuto questo documento per errore siete cortesemente
pregati di darne immediata comunicazione al mittente ai riferimenti
indicati e provvedere immediatamente alla sua distruzione.
Salvaguardiamo l'ambiente: se non ti è necessario, non stampare questa mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190131/9ffed423/attachment.html>
More information about the Qgis-user
mailing list