<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Thanks Andreas!</div>
<div>I was not aware of the inverted polyong renderer.</div>
<div>Works great!</div>
<div> </div>
<div>NB: I even managed to have landscape and portrait pages depending on the shape of the current polgyon in the Atlas.</div>
<div> </div>
<div>Such a joy working with QGIS!</div>
<div> </div>
<div>Regards,</div>
<div>Roland</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Donnerstag, 19. August 2021 um 15:18 Uhr<br/>
<b>Von:</b> "Andreas Neumann" <andreas@qgis.org><br/>
<b>An:</b> "Roland Spielhofer" <rspiel@gmx.net><br/>
<b>Cc:</b> "qgis-user" <qgis-user@lists.osgeo.org><br/>
<b>Betreff:</b> Re: [Qgis-user] Atlas - Make sourrounding of Coverage Layer transparent</div>
<div name="quoted-content">
<div>
<div>Hi Roland,</div>
<div> </div>
<div>You can achieve this with the "inverted polygon" renderer where you basically style all areas outside of the current atlas polygon - typically used with some transparency to make the non-atlas feature "lighter".</div>
<div> </div>
<div>Or with the rule-based renderer where you can ask if the atlas-id is the same as the current feature id, a rule similar to:</div>
<div>pk_column = attribute(@atlas_feature,'pk_column')</div>
<div>and then style the atlas feature differently (or not at all) as all other features (ELSE rule).</div>
<div> </div>
<div>If you want this for atlas print only, you could create a separate, additional style for this, or an extra set of layers that are only displayed/printed in the atlas layout context.</div>
<div> </div>
<div>Let us know if you need some more assistance for either option.</div>
<div> </div>
<div>Greetings,</div>
<div>Andreas</div>
</div>
<div class="gmail_quote">
<div class="gmail_attr">On Thu, 19 Aug 2021 at 15:02, Roland Spielhofer <<a href="mailto:rspiel@gmx.net" onclick="parent.window.location.href='mailto:rspiel@gmx.net'; return false;" target="_blank">rspiel@gmx.net</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>
<div>I use a polygon layer as coverage layer for creating an atlas.</div>
<div>What I would like to have is that everything outside of the polygon shown on the atlas page is shown transparent.</div>
<div>The inside of the polygon should display normal.</div>
<div> </div>
<div> </div>
<div>I made a picture showing what I would like to achieve. The left side of the dotted orange polygon (=coverage layer) is what I am looking for.</div>
<div><a href="https://imgur.com/a/1UXgFKr" target="_blank">https://imgur.com/a/1UXgFKr</a></div>
<div> </div>
<div>How can this be done?</div>
<div> </div>
<div>Regards,</div>
<div>Roland</div>
</div>
</div>
_______________________________________________<br/>
Qgis-user mailing list<br/>
<a href="mailto:Qgis-user@lists.osgeo.org" onclick="parent.window.location.href='mailto:Qgis-user@lists.osgeo.org'; return false;" target="_blank">Qgis-user@lists.osgeo.org</a><br/>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br/>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
</div>
<br clear="all"/>
<br/>
--
<div class="gmail_signature">
<div>
<div><br/>
--<br/>
Andreas Neumann</div>
<a href="http://QGIS.ORG" target="_blank">QGIS.ORG</a> board member (treasurer)</div>
</div>
</div>
</div>
</div>
</div></div></body></html>