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.

2 Answers 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


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)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.