Ah… I found the answer.  If I export the LAYER it allows me to clip and rescale 
in the export.  That seems to be working…

Thanks!

Michael

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Nicolas Cadieux<mailto:[email protected]>
Sent: Sunday, April 19, 2020 5:46 PM
To: Michael Demeyer<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Qgis-user] Unable to Clip Raster from WMS Source

Hi,

You need to export the image first.  Try exporting the project as a .tiff then, 
you will be able to clip the new image.
Nicolas Cadieux
Ça va bien aller!


Le 19 avr. 2020 à 20:01, Michael Demeyer <[email protected]> a écrit :

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.

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”

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.

Thanks!

Michael

QGIS version: 3.12.1-București
QGIS code revision: 121cc00ff0
Qt version: 5.11.2
GDAL version: 3.0.4
GEOS version: 3.8.1-CAPI-1.13.3
PROJ version: Rel. 6.3.1, February 10th, 2020
Processing algorithm…
Algorithm 'Clip raster by extent' starting…
Input parameters:
{ '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' }

GDAL command:
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"
GDAL command output:


FAILURE: No target dataset specified.

Sent from 
Mail<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>
 for Windows 10

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to