[QGIS-it-user] Ritaglio raster

Walter Tomazzolli walter.tomazzolli a gmail.com
Mer 18 Nov 2020 06:57:22 PST


Buon pomeriggio,
sono nuovo della mailing list e utilizzo un pò QGIS per la mia attività di
Tecnico Competente in Acustica.
Utilizzo la versione 3.10 con sistema operativo windows.
Chiedo il vostro aiuto perchè non riesco a fare l'operazione di ritaglio
del raster con maschera.
Allego il file di testo dell'errore.
Grazie
Walter
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.osgeo.org/pipermail/qgis-it-user/attachments/20201118/cb7ff1f5/attachment-0001.html>
-------------- parte successiva --------------
Versione di QGIS: 3.10.11-A Coruña
Revisione codice QGIS: d2171173e4
Versione di Qt: 5.11.2
versione di GDAL: 3.1.4
Versione di GEOS: 3.8.1-CAPI-1.13.3
Versione di PROJ:Rel. 6.3.2, May 1st, 2020
Algoritmo in esecuzione...
In avvio l'algoritmo 'Ritaglia il raster con maschera' …
Input parameters:
{ 'ALPHA_BAND' : False, 'CROP_TO_CUTLINE' : True, 'DATA_TYPE' : 0, 'EXTRA' : '', 'INPUT' : 'crs=EPSG:25832&dpiMode=7&format=image/png&layers=ecw-rgb-2015&styles&url=https://siat.provincia.tn.it/geoserver/stem/ecw-rgb-2015/wms?', 'KEEP_RESOLUTION' : False, 'MASK' : 'C:\\Users\\Walter\\Documents\\temp\\pippo.shp', 'MULTITHREADING' : False, 'NODATA' : -999999999, 'OPTIONS' : '', 'OUTPUT' : 'TEMPORARY_OUTPUT', 'SET_RESOLUTION' : False, 'SOURCE_CRS' : None, 'TARGET_CRS' : None, 'X_RESOLUTION' : None, 'Y_RESOLUTION' : None }

GDAL command:
gdalwarp -of GTiff -cutline C:\Users\Walter\Documents\temp\pippo.shp -cl pippo -crop_to_cutline -dstnodata -999999999.0 crs=EPSG:25832&dpiMode=7&format=image/png&layers=ecw-rgb-2015&styles&url=https://siat.provincia.tn.it/geoserver/stem/ecw-rgb-2015/wms? C:\Users\Walter\AppData\Local\Temp/processing_b3ea843b812741c48a3b41f05336dc3f/f941115b34304c37ae005ed94766cb8d/OUTPUT.tif
GDAL command output:


FAILURE: No target filename specified.

Usage: gdalwarp [--help-general] [--formats]

[-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"]* [-novshiftgrid]

[-order n | -tps | -rpc | -geoloc] [-et err_threshold]

[-refine_gcps tolerance [minimum_gcps]]

[-te xmin ymin xmax ymax] [-tr xres yres] [-tap] [-ts width height]

[-ovr level|AUTO|AUTO-n|NONE] [-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16]

[-srcnodata "value [value...]"] [-dstnodata "value [value...]"] -dstalpha

[-r resampling_method] [-wm memory_in_mb] [-multi] [-q]

[-cutline datasource] [-cl layer] [-cwhere expression]

[-csql statement] [-cblend dist_in_pixels] [-crop_to_cutline]

[-of format] [-co "NAME=VALUE"]* [-overwrite]

[-nomd] [-cvmd meta_conflict_value] [-setci] [-oo NAME=VALUE]*

[-doo NAME=VALUE]*

srcfile* dstfile



Available resampling methods:

near (default), bilinear, cubic, cubicspline, lanczos, average, mode, max, min, med, Q1, Q3, sum.

Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/plugins\processing\algs\gdal\GdalAlgorithm.py", line 137, in processAlgorithm
GdalUtils.runGdal(commands, feedback)
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/plugins\processing\algs\gdal\GdalUtils.py", line 108, in runGdal
for line in proc.stdout:
File "C:\PROGRA~1\QGIS3~1.10\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 0x8a in position 14: invalid start byte

Execution failed after 0.12 seconds

Caricamento layer
Algorithm 'Ritaglia il raster con maschera' finished


Maggiori informazioni sulla lista QGIS-it-user