[Qgis-user] Unable to Clip Raster from WMS Source

DelazJ delazj at gmail.com
Mon Apr 20 14:35:17 PDT 2020


Hi,

Le lun. 20 avr. 2020 à 18:32, Nicolas Cadieux <nicolas.cadieux at archeotec.ca>
a écrit :

> Hi,
>
> You could try starting QGIS with command line options. I did not find the
> option for QGIS 3 but this probably works.
> https://docs.qgis.org/2.18/en/docs/user_manual/introduction/getting_started.html#command-line-options
>
>
https://docs.qgis.org/3.10/en/docs/user_manual/introduction/qgis_configuration.html#command-line-and-environment-variables

Regards,
Harrissou

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?
>
> Please do a reply all so that the QGIS user groupe can profit of the
> conversation.
> Cheers!
>
> Nicolas Cadieux
> Ça va bien aller!
>
> Le 20 avr. 2020 à 00:38, Michael Demeyer <Michael at demeyer.org> a écrit :
>
> 
>
> Nicolas,
>
>
>
> 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.
>
>
>
> Any idea why it is not working?
>
>
>
> Michael
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *Nicolas Cadieux <nicolas.cadieux at archeotec.ca>
> *Sent: *Sunday, April 19, 2020 5:46 PM
> *To: *Michael Demeyer <Michael at demeyer.org>
> *Cc: *qgis-user at lists.osgeo.org
> *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 <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
> <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
> 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
>
>
>
> _______________________________________________
> 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/20200420/65e988af/attachment.html>


More information about the Qgis-user mailing list