[QGIS-pt] Erro no corte de raster ["Clip Raster by Mask Layer"]

Bruno Moreira arq.bruno.moreira at gmail.com
Thu Feb 13 14:18:09 PST 2020


Poderá ser o caminho do ficheiro de entrada (a pasta OT&U contém um símbolo, por norma penso ser de os evitar; o caminho também é muito longo).

Sugeria mover o raster para, por exemplo, a raiz do disco em C:  e tentar novamente, para despistar.

Bruno Moreira

> No dia 13/02/2020, às 21:52, Valter Albino <valteralbino  gmail.com> escreveu:
> 
> 
> Viva
> 
> Tentei fazer um recorte através de função "Clip Raster by Mask Layer" pelo menu do QGIS, mas sem sucesso.
> Sabem o que poderá ser?
> Anexo mensagem:
> 
> "
> QGIS version: 3.10.2-A Coruña
> QGIS code revision: d4cd3cfe5a
> Qt version: 5.11.2
> GDAL version: 3.0.4
> GEOS version: 3.8.0-CAPI-1.13.1 
> PROJ version: Rel. 6.3.0, January 1st, 2020
> Processing algorithm…
> Algorithm 'Clip raster by mask layer' starting…
> Input parameters:
> { 'ALPHA_BAND' : True, 'CROP_TO_CUTLINE' : True, 'DATA_TYPE' : 0, 'EXTRA' : '', 'INPUT' : 'H:/FICHEIROS_DADOS/OT&U/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/DISCPUBL/PROF_LVT_pecas_graficas/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5.jpeg', 'KEEP_RESOLUTION' : False, 'MASK' : 'Polygon?crs=EPSG:3763&uid={f2fbc031-7884-4446-a21f-2630b2d88616}', 'MULTITHREADING' : False, 'NODATA' : None, '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\PARTIC~1\AppData\Local\Temp/processing_34d70197907049729d4ea29a9111efd2/30b1cf7e549d459a82bba50fa23ed1a7/MASK.gpkg -cl MASK -crop_to_cutline -dstalpha H:/FICHEIROS_DADOS/OT&U/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/DISCPUBL/PROF_LVT_pecas_graficas/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5.jpeg C:\Users\PARTIC~1\AppData\Local\Temp/processing_34d70197907049729d4ea29a9111efd2/57d22bdf9eaa4afba7e5c33a72c3685a/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.
> 
> 'U' is not recognized as an internal or external command,
> 
> operable program or batch file.
> 
> Execution completed in 0.31 seconds
> Results:
> {'OUTPUT': 'C:\\Users\\PARTIC~1\\AppData\\Local\\Temp/processing_34d70197907049729d4ea29a9111efd2/57d22bdf9eaa4afba7e5c33a72c3685a/OUTPUT.tif'}
> 
> Loading resulting layers
> The following layers were not correctly generated.<ul><li>C:\Users\PARTIC~1\AppData\Local\Temp/processing_34d70197907049729d4ea29a9111efd2/57d22bdf9eaa4afba7e5c33a72c3685a/OUTPUT.tif</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
> "
> 
> Obrigado desde já
> 
> 
> Cumprimentos,
> Valter Albino - Geógrafo Físico, M.Sc.
> Modelação H&H / Riscos ambientais / OT&U
> www.valteralbino.wixsite.com/hydrodynamics
> _______________________________________________
> QGIS-pt mailing list
> QGIS-pt  lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-pt
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.osgeo.org/pipermail/qgis-pt/attachments/20200213/6db8b541/attachment.html>


More information about the QGIS-pt mailing list