[Qgis-developer] Processing: gdal_translate fails on Windows if no output filename is chosen

Paolo Cavallini cavallini at faunalia.it
Sat Apr 9 00:26:10 PDT 2016


Hi all,
on Windows (both 7 and 10), Clip layer by extent fails if no explicit
output filename is given. The problem seems the output file type:

gdal_translate -of "ESRI Shapefile" -ot Float32 -projwin 323590.0
4698482.5 326815.0 4696072.5 D:/dtm_20m_32/w001001.adf
C:\Users\aaaa\AppData\Local\Temp\processing13b90b0cc2b045b28d1a8ab70a3317af\60d19504e2d94332be5b3d845d1c9726\OUTPUT.shp
GDAL command output:
ERROR 6: Source driver is raster-only whereas output driver is vector-only
Input file size is 52281, 67098
Computed -srcwin 684 28640 161 121 from projected window.

Same command on Debian runs soothly:

gdal_translate -of GTiff -ot Float32 -projwin 1622806.32194
4869136.67909 1658315.41285 4833134.40636 -co COMPRESS=DEFLATE -co
PREDICTOR=1 -co ZLEVEL=6 /home/paolo/QGIS_data/dtm.tif
/tmp/processing45330ad6bfb042f8a9bfb8be779e9668/b7be76b88e884eb0951ff826259ebf2a/OUTPUT.tif


Anyone confirms? Should I open a ticket?

All the best.
-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html


More information about the Qgis-developer mailing list