<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Have connected a WMS server for the NAIP Imagery data (US Department of Agriculture) to a layer in a project, which seems to function properly.  I am trying to export a sub-section of the data using the Clip Raster by Extent function, also
 specifying the resolution at 30 x 30 meters.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below is the input string to GDAL that is created.  I consistently (100% of the time) get an error saying “Failure: No Target Dataset Specified”</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Have tried everything I can think of.  This command works fine for me on local data, but is somehow not working for this WMS source.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks!</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Michael</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">QGIS version: 3.12.1-București</p>
<p class="MsoNormal">QGIS code revision: 121cc00ff0</p>
<p class="MsoNormal">Qt version: 5.11.2</p>
<p class="MsoNormal">GDAL version: 3.0.4</p>
<p class="MsoNormal">GEOS version: 3.8.1-CAPI-1.13.3</p>
<p class="MsoNormal">PROJ version: Rel. 6.3.1, February 10th, 2020</p>
<p class="MsoNormal">Processing algorithm…</p>
<p class="MsoNormal">Algorithm 'Clip raster by extent' starting…</p>
<p class="MsoNormal">Input parameters:</p>
<p class="MsoNormal">{ 'DATA_TYPE' : 0, 'EXTRA' : '', 'INPUT' : 'contextualWMSLegend=0&crs=EPSG:4326&dpiMode=7&featureCount=10&format=image/jpeg&layers=0&styles&url=https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer', 'NODATA'
 : None, 'OPTIONS' : '', 'OUTPUT' : 'E:/Flying/Landscape Building/Imagery Test/jpeg test.bil', 'PROJWIN' : '415804, 761404, 3987838, 4379518' }</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">GDAL command:</p>
<p class="MsoNormal">gdal_translate -projwin 415804.0 4379518.0 761404.0 3987838.0 -of EHdr contextualWMSLegend=0&crs=EPSG:4326&dpiMode=7&featureCount=10&format=image/jpeg&layers=0&styles&url=https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer
 "E:/Flying/Landscape Building/Imagery Test/jpeg test.bil"</p>
<p class="MsoNormal">GDAL command output:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">FAILURE: No target dataset specified.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows 10</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>