<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I have a geopkg that contains two polygon layers. I've added one of
these layers to my map. As it happens, the layer is the second layer
in the geopkg, both alphabetically and in terms of order added. I
try to clip a raster using this layer. The clip is performed using
the first (wrong) layer. Looking at the gdal command, the geopkg is
referenced, but no indication of which layer/table. <br>
<blockquote><span style=" color:#000000;"> </span>gdalwarp -of
GTiff -cutline "C:/users/David/Documents/Forest Service/Forest
Plan/Maps/TimberHarvest/TimberHarvest.gpkg" -crop_to_cutline -co
COMPRESS=DEFLATE -co PREDICTOR=2 -co ZLEVEL=9
"C:\\Users\\David\\Geodata\\Forest Service Files\\SFNF
DEM\\SFNF_Slope.tif"
C:/users/David/AppData/Local/Temp/processing_16ed8f8a41b340cab71bf807014b3192/c0bcbc5ed54d4d84b28a00b040574cfd/OUTPUT.tif
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;">2019-08-30T17:24:01 <br>
</span></p>
</blockquote>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;">The obvious workaround is to export the
layer, but is there a better solution? Is this a bug in qgis?<br>
</span></p>
</body>
</html>