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

Valter Albino valteralbino at gmail.com
Thu Feb 13 14:34:21 PST 2020


Bom... AFAIK, é mesmo somente o caratere especial que estava a corromper:

"

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' : False, 'CROP_TO_CUTLINE' : True, 'DATA_TYPE' : 0, 'EXTRA'
: '', 'INPUT' :
'H:/FICHEIROS_DADOS/OTU/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/MASCARA_folha3_5/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5_clip.tif',
'KEEP_RESOLUTION' : False, 'MASK' :
'Polygon?crs=EPSG:3763&uid={66c596a4-5d98-4c6b-a664-c988783e6b41}',
'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_73997acac74c4ed9b0ea6749fcf6c93c/7e0afb402fce4ce8b1e7ba242101ad18/MASK.gpkg
-cl MASK -crop_to_cutline
H:/FICHEIROS_DADOS/OTU/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/MASCARA_folha3_5/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5_clip.tif
C:\Users\PARTIC~1\AppData\Local\Temp/processing_73997acac74c4ed9b0ea6749fcf6c93c/2dd6cfcbb5524ca7bc6dfea0c9269515/OUTPUT.tif

GDAL command output:

Creating output file that is 944P x 590L.

Processing
H:/FICHEIROS_DADOS/OTU/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/MASCARA_folha3_5/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5_clip.tif
[1/1] : 0Using internal nodata values (e.g. 65535) for image
H:/FICHEIROS_DADOS/OTU/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/MASCARA_folha3_5/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5_clip.tif.

Copying nodata values from source
H:/FICHEIROS_DADOS/OTU/ORDENAMENTO_TERRITORIO/PLANOS_DESENVOLV_TERRIT/PSECT/PROF/PROF_LVT/PROF_LVT/MASCARA_folha3_5/PG_3_AreasFlorestaisSensiveis_e_CE_LVT_3-5_clip.tif
to destination
C:\Users\PARTIC~1\AppData\Local\Temp/processing_73997acac74c4ed9b0ea6749fcf6c93c/2dd6cfcbb5524ca7bc6dfea0c9269515/OUTPUT.tif.

...10...20...30...40...50...60...70...80...90...100 - done.

Execution completed in 0.40 seconds

Results:

{'OUTPUT':
'C:\\Users\\PARTIC~1\\AppData\\Local\\Temp/processing_73997acac74c4ed9b0ea6749fcf6c93c/2dd6cfcbb5524ca7bc6dfea0c9269515/OUTPUT.tif'}


Loading resulting layers

Algorithm 'Clip raster by mask layer' finished"


Obrigado.

Cumprimentos,
*Valter Albino -* Geógrafo Físico, M.Sc.
Modelação H&H / Riscos ambientais / OT&U
www.valteralbino.wixsite.com/hydrodynamics


Valter Albino <valteralbino  gmail.com> escreveu no dia quinta, 13/02/2020
à(s) 22:25:

> Olá Bruno,
>
> Bem esta foi uma daquelas Q&A bem básicas.
> Obrigado, parece que o caminho era extenso demais :-)
>
> Cumprimentos,
> *Valter Albino -* Geógrafo Físico, M.Sc.
> Modelação H&H / Riscos ambientais / OT&U
> www.valteralbino.wixsite.com/hydrodynamics
>
>
> Bruno Moreira <arq.bruno.moreira  gmail.com> escreveu no dia quinta,
> 13/02/2020 à(s) 22:18:
>
>> 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
>>
>> _______________________________________________
>> 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/90b2dfbd/attachment.html>


More information about the QGIS-pt mailing list