<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br></div><div>You could try starting QGIS with command line options. I did not find the option for QGIS 3 but this probably works. <a href="https://docs.qgis.org/2.18/en/docs/user_manual/introduction/getting_started.html#command-line-options">https://docs.qgis.org/2.18/en/docs/user_manual/introduction/getting_started.html#command-line-options</a></div><div><br></div><div>The biggest problem is that you will probably not be able to download the entire US at the resolution you want.  Most wms server will limite the size of the download.  What are you trying to download exactly?  Can you find the original data that does come from a wms server? <br><br>Please do a reply all so that the QGIS user groupe can profit of the conversation.</div><div>Cheers!</div><div><br><div dir="ltr">Nicolas Cadieux<div>Ça va bien aller!</div></div><div dir="ltr"><br><blockquote type="cite">Le 20 avr. 2020 à 00:38, Michael Demeyer <Michael@demeyer.org> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<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>


<div class="WordSection1">
<p class="MsoNormal">Nicolas,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for the reply.  The problem is that the entire thing is the entire United States.  So I have to clip before I can save it.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any idea why it is not working?</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">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 style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:nicolas.cadieux@archeotec.ca">Nicolas Cadieux</a><br>
<b>Sent: </b>Sunday, April 19, 2020 5:46 PM<br>
<b>To: </b><a href="mailto:Michael@demeyer.org">Michael Demeyer</a><br>
<b>Cc: </b><a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<b>Subject: </b>Re: [Qgis-user] Unable to Clip Raster from WMS Source</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">You need to export the image first.  Try exporting the project as a .tiff then, you will be able to clip the new image.<o:p></o:p></p>
<div>
<p class="MsoNormal">Nicolas Cadieux <o:p></o:p></p>
<div>
<p class="MsoNormal">Ça va bien aller!<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">Le 19 avr. 2020 à 20:01, Michael Demeyer <Michael@demeyer.org> a écrit :<o:p></o:p></p>
</blockquote>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"> <o:p></o:p></p>
<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.<o:p></o:p></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”<o:p></o:p></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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Michael<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">QGIS version: 3.12.1-București<o:p></o:p></p>
<p class="MsoNormal">QGIS code revision: 121cc00ff0<o:p></o:p></p>
<p class="MsoNormal">Qt version: 5.11.2<o:p></o:p></p>
<p class="MsoNormal">GDAL version: 3.0.4<o:p></o:p></p>
<p class="MsoNormal">GEOS version: 3.8.1-CAPI-1.13.3<o:p></o:p></p>
<p class="MsoNormal">PROJ version: Rel. 6.3.1, February 10th, 2020<o:p></o:p></p>
<p class="MsoNormal">Processing algorithm…<o:p></o:p></p>
<p class="MsoNormal">Algorithm 'Clip raster by extent' starting…<o:p></o:p></p>
<p class="MsoNormal">Input parameters:<o:p></o:p></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' }<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">GDAL command:<o:p></o:p></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"<o:p></o:p></p>
<p class="MsoNormal">GDAL command output:<o:p></o:p></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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Sent from <a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=02%7C01%7C%7C3c35999772004b943dae08d7e4c4437d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637229403910888238&sdata=LYvIWJBiDXfh%2F23GZWoONRoEHjIHmg%2BLNJzI%2FED35WA%3D&reserved=0">
Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:.5in;margin-bottom:5.0pt;margin-left:.5in">
_______________________________________________<br>
Qgis-user mailing list<br>
Qgis-user@lists.osgeo.org<br>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br>
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>


</div></blockquote></div></body></html>