[Qgis-user] Raster layer opacity expression - how does it work?

Ujaval Gandhi ujaval at spatialthoughts.com
Sun Dec 5 08:07:14 PST 2021


I assume you are trying to set the opacity to 50% outside of a polygon
layer. This can be done using the 'Inverted Polygon' renderer. See this
screenshot https://ibb.co/Sf5HySf

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: ujaval at spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sun, Dec 5, 2021 at 5:12 PM Jonathan Schultz <jonathan at schultz.la> wrote:

> Hello,
>
> I'm trying to use opacity on a raster layer to highlight an area of
> interest. So, for example, I would use opacity 100 for an area (defined
> in another layer), and 50 for anywhere outside that area. But I can't
> seem to even find basic documentation on how the Renderer opacity values
> work. If I enable the Assistant I get a bunch of fields: Source (an
> expression), Values from and to, plus a checkbox "Apply transform curve"
> with its own set of fields.
>
> When I google words like "Renderer opacity" all I get are references to
> the source code but no documentation or examples.
>
> This is QGIS version 3.22.0-Białowieża running on Linux/Debian.
>
> Does anyone know how this stuff works, or how I could find out?
>
> Thanks!
> _______________________________________________
> 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/20211205/1331dfbb/attachment.html>


More information about the Qgis-user mailing list