QDAL Clipping Algo

17 views
Skip to first unread message

Kevin Hagen

unread,
May 20, 2025, 2:05:04 AM5/20/25
to QGIS Australia User Group
Hi all,

QGIS newbie here - I'm no GIS expert, just an interested amateur having a play :-)

I've been attempting to use the clipping algorithm to clip a raster basemap using a polygon in a shp (vector) layer as a mask.  It comes up with with an error per the photo attached.  Both the raster map and shapefile layers appear fine on my screen.

Does anyone know if the cliiping algo normally works with linked maps, or does it only work with local raster images?
Screenshot 2025-05-20 155839.png

Adam Steer

unread,
May 20, 2025, 5:40:44 AM5/20/25
to australian-qg...@googlegroups.com
Hi Kevin, welcome to QGIS! Hope it becomes a long and fun journey.

The error message pretty much says "nope, we can't clip tile server data with a polygon, needs to be a local file".

QGIS has another method for masking out parts of layers, assuming that was your aim. With the polygon you made, head to the layer styling panel and click where it says "single symbol". In the drop down list that pops up, choose "Inverted polygon". This fills everything *outside* your polygon, making a neat mask for an underlying layer.

You can also export a map view as a geotiff (project -> import/export -> export map as image), then load the exported image, and then clip it as normal.

Personally for XYZ tile / other web map datasets, I'd generally use the inverted polygon masking method...

HTH

Adam
--
Open for consulting - see https://spatialised.net


--
You received this message because you are subscribed to the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/australian-qgis-user-group/3b9a6498-4f17-421b-9778-ed06b495fccan%40googlegroups.com.

Kevin Hagen

unread,
May 20, 2025, 6:42:02 PM5/20/25
to QGIS Australia User Group
Thanks so much Adam, I'll give that a try.  QGIS is brilliant - I'm having a lot of fun with it. 🙂

Cheers
Kevin

Reply all
Reply to author
Forward
0 new messages