[Qgis-developer] GdalTools plug-in clipper

Paolo Cavallini cavallini at faunalia.it
Fri Jan 9 10:31:55 PST 2015


Il 09/01/2015 17:58, Siki Zoltan ha scritto:

> I found a bug in GdalTools/Clipper, when a mask layer is used with a
> filter expression, the generated gdalwarp command is is not valid.
> The generated  command looks like this:
> gdalwarp -q -cutline "poly.shp|layerid=0|subset=\"Nev\" = 'Heves'"
> -crop_to_cutline input.tif output.tif
>
> the correct command would be:
> gdalwarp -q -cutline "poly.shp" -cwhere="Nev='Heves'"
> -crop_to_cutline input.tif output.tif
>
> I suppose in getArgsModeMask (doClipper.py) after line 167 the mask
> should be processed if it contains "|".

Hi Zoltan,
thanks for this. Could you please open a ticket or a pull reqest?
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