<div dir="ltr"><div dir="ltr"><div>Hi,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 20 avr. 2020 à 18:32, Nicolas Cadieux <<a href="mailto:nicolas.cadieux@archeotec.ca">nicolas.cadieux@archeotec.ca</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div 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" target="_blank">https://docs.qgis.org/2.18/en/docs/user_manual/introduction/getting_started.html#command-line-options</a></div><div><br></div></div></blockquote><div><a href="https://docs.qgis.org/3.10/en/docs/user_manual/introduction/qgis_configuration.html#command-line-and-environment-variables">https://docs.qgis.org/3.10/en/docs/user_manual/introduction/qgis_configuration.html#command-line-and-environment-variables</a></div><div><br></div><div>Regards,</div><div>Harrissou</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div></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 <<a href="mailto:Michael@demeyer.org" target="_blank">Michael@demeyer.org</a>> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">





<div>
<p class="MsoNormal">Nicolas,</p>
<p class="MsoNormal"><u></u> <u></u></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"><u></u> <u></u></p>
<p class="MsoNormal">Any idea why it is not working?</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Michael</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">
Mail</a> for Windows 10</p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal" style="border:medium none;padding:0in"><b>From: </b><a href="mailto:nicolas.cadieux@archeotec.ca" target="_blank">Nicolas Cadieux</a><br>
<b>Sent: </b>Sunday, April 19, 2020 5:46 PM<br>
<b>To: </b><a href="mailto:Michael@demeyer.org" target="_blank">Michael Demeyer</a><br>
<b>Cc: </b><a href="mailto:qgis-user@lists.osgeo.org" target="_blank">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"><u></u> <u></u></p>
<p class="MsoNormal">Hi, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">You need to export the image first.  Try exporting the project as a .tiff then, you will be able to clip the new image.<u></u><u></u></p>
<div>
<p class="MsoNormal">Nicolas Cadieux <u></u><u></u></p>
<div>
<p class="MsoNormal">Ça va bien aller!<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal" style="margin-bottom:12pt">Le 19 avr. 2020 à 20:01, Michael Demeyer <<a href="mailto:Michael@demeyer.org" target="_blank">Michael@demeyer.org</a>> a écrit :<u></u><u></u></p>
</blockquote>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal"> <u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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”<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks!<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Michael<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">QGIS version: 3.12.1-București<u></u><u></u></p>
<p class="MsoNormal">QGIS code revision: 121cc00ff0<u></u><u></u></p>
<p class="MsoNormal">Qt version: 5.11.2<u></u><u></u></p>
<p class="MsoNormal">GDAL version: 3.0.4<u></u><u></u></p>
<p class="MsoNormal">GEOS version: 3.8.1-CAPI-1.13.3<u></u><u></u></p>
<p class="MsoNormal">PROJ version: Rel. 6.3.1, February 10th, 2020<u></u><u></u></p>
<p class="MsoNormal">Processing algorithm…<u></u><u></u></p>
<p class="MsoNormal">Algorithm 'Clip raster by extent' starting…<u></u><u></u></p>
<p class="MsoNormal">Input parameters:<u></u><u></u></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=<a href="https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer" target="_blank">https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer</a>', 'NODATA'
 : None, 'OPTIONS' : '', 'OUTPUT' : 'E:/Flying/Landscape Building/Imagery Test/jpeg test.bil', 'PROJWIN' : '415804, 761404, 3987838, 4379518' }<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">GDAL command:<u></u><u></u></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=<a href="https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer" target="_blank">https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer</a>
 "E:/Flying/Landscape Building/Imagery Test/jpeg test.bil"<u></u><u></u></p>
<p class="MsoNormal">GDAL command output:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">FAILURE: No target dataset specified.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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" target="_blank">
Mail</a> for Windows 10<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="margin-right:0.5in;margin-bottom:5pt;margin-left:0.5in">
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>


</div></blockquote></div></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div></div>