[Qgis-developer] GdalTools plug-in clipper

Siki Zoltan siki at agt.bme.hu
Fri Jan 9 10:56:11 PST 2015


Hi Paolo,

Bug report #11972 created.

Zoltan

On Fri, 9 Jan 2015, Paolo Cavallini wrote:

> 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
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>


More information about the Qgis-developer mailing list