2

In QGIS, I would like to use polygon and open street map (google satellite) as "Clip raster by mask layer" to obtain a Google image in the form of polygon.

enter image description here

However, if you use the Clip raster by mask layer function, 'The following layers were not correctly generated.'

When a message comes out, the desired result is not produced.

Please tell me another good way.

bsg
  • 467
  • 2
  • 10

2 Answers2

2

Instead of clipping the area by polygon, you can use inverted polygon symbology to mask the area outside the polygon. You can refer to this answer on how to apply inverted polygon:

Inverted filling of polygon in QGIS

ahmadhanb
  • 40,826
  • 5
  • 51
  • 105
1

If you really need to clip WMTS/WMS layers because you like to create small vector PDFs where masking the area is no option, you could use gdalwarp to produce clipped virtual rasters (VRT):

QGIS Data Frame Clipping for Basemaps

Storing GDAL VRT sources inside QGIS project files (.qgs, .qgz, .gpkg)?

christoph
  • 5,605
  • 1
  • 20
  • 34