Salve a tutti,
stamani ho provato a smussare un reticolo con (QGIS PROCESSING) v.generalize - metodo snakes 10 ma sempre con esito negativo e dava il seguente errore:
Avvio dell’algoritmo v.generalize - Vector based generalization…
g.proj -c proj4=“+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs”
v.in.ogr min_area=0.0001 snap=-1 dsn=“\VBOXSVR\Documents\Shape\Shape” layer=“DEM_clipnet” output=tmp1456582252243 --overwrite -o
g.region n=4910262.0 s=4898112.0 e=351847.699335 w=340288.979512 res=100
v.generalize input=“tmp1456582252243” method=snakes threshold=“2” look_ahead=“7” reduction=“50” slide=“0.5” angle_thresh=“3” degree_thresh=“0” closeness_thresh=“0” betweeness_thresh=“0” alpha=“1” beta=“1” iterations=“1” -c output=output8ae4da4cea2448a1abcdf028f0dceceb --overwrite
v.out.ogr -s -c -e -z input=output8ae4da4cea2448a1abcdf028f0dceceb dsn=“C:\Users\vm_toto\AppData\Local\Temp\processing837549c71ea64608bc54263615378485\f47b82117e424c6d8be43125b16c3c8f” format=ESRI_Shapefile olayer=“output” type=auto
GRASS commands output:
C:\OSGeo4W64\bin>set HOME=C:\Users\vm_toto
C:\OSGeo4W64\bin>set GISRC=C:\Users\vm_toto.qgis2\processing\processing.gisrc
C:\OSGeo4W64\bin>set GRASS_SH=C:/OSGEO4~1/apps\msys\bin\sh.exe
C:\OSGeo4W64\bin>set PATH=C:/OSGEO4~1/apps\msys\bin;C:/OSGEO4~1/apps\msys\lib;C:\OSGEO4~1\apps\Python27\lib\site-packages\numpy\core;C:\OSGEO4~1\apps\qgis-dev\bin;C:\OSGEO4~1\apps\grass\grass-6.4.3\lib;C:\OSGEO4~1\apps\grass\grass-6.4.3\bin;C:\OSGEO4~1\apps\grass\grass-6.4.3\bin;C:\OSGEO4~1\apps\msys\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\Windows\system32;C:\Windows;C:\Windows\WBem;C:\OSGEO4~1\apps\msys\bin
C:\OSGeo4W64\bin>set WINGISBASE=C:/OSGEO4~1/apps\grass\grass-6.4.3
C:\OSGeo4W64\bin>set GISBASE=C:/OSGEO4~1/apps\grass\grass-6.4.3
C:\OSGeo4W64\bin>set GRASS_PROJSHARE=C:/OSGEO4~1/apps\grass\grass-6.4.3\share\proj
C:\OSGeo4W64\bin>set GRASS_MESSAGE_FORMAT=gui
C:\OSGeo4W64\bin>if “” == “” set PATH=C:/OSGEO4~1/apps\grass\grass-6.4.3\bin;C:/OSGEO4~1/apps\grass\grass-6.4.3\lib;C:/OSGEO4~1/apps\msys\bin;C:/OSGEO4~1/apps\msys\lib;C:\OSGEO4~1\apps\Python27\lib\site-packages\numpy\core;C:\OSGEO4~1\apps\qgis-dev\bin;C:\OSGEO4~1\apps\grass\grass-6.4.3\lib;C:\OSGEO4~1\apps\grass\grass-6.4.3\bin;C:\OSGEO4~1\apps\grass\grass-6.4.3\bin;C:\OSGEO4~1\apps\msys\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\Windows\system32;C:\Windows;C:\Windows\WBem;C:\OSGEO4~1\apps\msys\bin
C:\OSGeo4W64\bin>if not “” == “” set PATH=C:/OSGEO4~1/apps\grass\grass-6.4.3\bin;C:/OSGEO4~1/apps\grass\grass-6.4.3\lib;;C:/OSGEO4~1/apps\grass\grass-6.4.3\bin;C:/OSGEO4~1/apps\grass\grass-6.4.3\lib;C:/OSGEO4~1/apps\msys\bin;C:/OSGEO4~1/apps\msys\lib;C:\OSGEO4~1\apps\Python27\lib\site-packages\numpy\core;C:\OSGEO4~1\apps\qgis-dev\bin;C:\OSGEO4~1\apps\grass\grass-6.4.3\lib;C:\OSGEO4~1\apps\grass\grass-6.4.3\bin;C:\OSGEO4~1\apps\grass\grass-6.4.3\bin;C:\OSGEO4~1\apps\msys\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\Windows\system32;C:\Windows;C:\Windows\WBem;C:\OSGEO4~1\apps\msys\bin
C:\OSGeo4W64\bin>set GRASS_VERSION=6.4.0
C:\OSGeo4W64\bin>if not “” == “” goto langset
C:\OSGeo4W64\bin>FOR /F “usebackq delims==” %i IN ("C:/OSGEO4~1/apps\grass\grass-6.4.3\etc\winlocale"
) DO @set LANG=%i
C:\OSGeo4W64\bin>set PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
C:\OSGeo4W64\bin>set PYTHONPATH=;C:/OSGEO4~1/apps\grass\grass-6.4.3\etc\python;C:/OSGEO4~1/apps\grass\grass-6.4.3\etc\wxpython\n
C:\OSGeo4W64\bin>g.gisenv.exe set=“MAPSET=PERMANENT”
C:\OSGeo4W64\bin>g.gisenv.exe set=“LOCATION=temp_location”
C:\OSGeo4W64\bin>g.gisenv.exe set=“LOCATION_NAME=temp_location”
C:\OSGeo4W64\bin>g.gisenv.exe set=“GISDBASE=C:\Users\vm_toto\AppData\Local\Temp\processing837549c71ea64608bc54263615378485\grassdata”
C:\OSGeo4W64\bin>g.gisenv.exe set=“GRASS_GUI=text”
C:\OSGeo4W64\bin>g.proj -c proj4=“+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs”
GRASS_INFO_MESSAGE(5748,1): Default region was updated to the new projection, but if you have multiple mapsets g.region -d
should be run in each to update the region from the default
GRASS_INFO_END(5748,1)
GRASS_INFO_MESSAGE(5748,2): Informazioni sulla proiezione aggiornate
GRASS_INFO_END(5748,2)
C:\OSGeo4W64\bin>v.in.ogr min_area=0.0001 snap=-1 dsn=“\VBOXSVR\Documents\Shape\Shape” layer=“DEM_clipnet” output=tmp1456582252243 --overwrite -o
GRASS_INFO_MESSAGE(1860,1): La verifica della proiezione verrà ignorata
GRASS_INFO_END(1860,1)
GRASS_INFO_MESSAGE(1860,2): Layer: DEM_clipnet
GRASS_INFO_END(1860,2)
DBMI-DBF driver error:
GRASS_INFO_ERROR(1860,3): Impossibile creare la tabella: create table tmp1456582252243 (cat integer, LINKNO integer, DSLINKNO integer, USLINKNO1 integer, USLINKNO2 integer, DSNODEID double precision, Order integer, Length double precision, Magnitude integer, DS_Cont_Ar double precision, Drop double precision, Slope double precision, Straight_L double precision, US_Cont_Ar double precision, WSNO integer, DOUT_END double precision, DOUT_START double precision, DOUT_MID double precision)
GRASS_INFO_END(1860,3)
C:\OSGeo4W64\bin>g.region n=4910262.0 s=4898112.0 e=351847.699335 w=340288.979512 res=100
C:\OSGeo4W64\bin>v.generalize input=“tmp1456582252243” method=snakes threshold=“2” look_ahead=“7” reduction=“50” slide=“0.5” angle_thresh=“3” degree_thresh=“0” closeness_thresh=“0” betweeness_thresh=“0” alpha=“1” beta=“1” iterations=“1” -c output=output8ae4da4cea2448a1abcdf028f0dceceb --overwrite
GRASS_INFO_ERROR(5752,1): Impossibile aprire il vettoriale sul livello 2. Provare a ricostruire la topologia con v.build.
GRASS_INFO_END(5752,1)
C:\OSGeo4W64\bin>v.out.ogr -s -c -e -z input=output8ae4da4cea2448a1abcdf028f0dceceb dsn=“C:\Users\vm_toto\AppData\Local\Temp\processing837549c71ea64608bc54263615378485\f47b82117e424c6d8be43125b16c3c8f” format=ESRI_Shapefile olayer=“output” type=auto
GRASS_INFO_ERROR(5932,1): Mappa vettoriale non trovata
GRASS_INFO_END(5932,1)
C:\OSGeo4W64\bin>exit
Converting outputs
Caricamento layer
The following layers were not correctly generated.
- Generalized
You can check the log messages to find more information about the execution of the algorithm
ho visto che è un errore legato al DBF quindi ho eliminato 15 campi dei 16 totali ed ora funziona bene.
chiedo se è normale tutto ciò e se esiste un numero massimo di campi nel DBF che gestisce il processing di QGIS.
saluti
···
Salvatore Fiandaca
mobile.:+39 327.493.8955
m: pigrecoinfinito@gmail.com
blog:**** https://pigrecoinfinito.wordpress.com/
43°51’0.54"N 10°34’27.62"E - EPSG:4326
“Se la conoscenza deve essere aperta a tutti,
perchè mai limitarne l’accesso?”
R. Stallman