[Qgis-user] Unable to Clip Raster from WMS Source
Nicolas Cadieux
nicolas.cadieux at archeotec.ca
Sun Apr 19 17:46:21 PDT 2020
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 <Michael at demeyer.org> 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 for Windows 10
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200419/c2e7e273/attachment.html>
More information about the Qgis-user
mailing list