<div dir="ltr"><div><div><div><div>Thank you Alexandre<br></div>Yess!!!<br></div>I get rid of the problem just after this posting.. And indeed the solution was as written on the end of Nathan post..<br><br></div>Now i was playing with label rules but without success...<br>
</div>I have two polygon layers, each feature of the first one can perfectly contain one or more features of the second (this last is the layer for the atlas generation), but sometimes the atlas feature can slightly exceed the containing polygon of the first layer<br>
<div><br></div><div>I want the label to appear for the first layer only for the feature that contains the atlas feature and not for the surrounding ones...<br></div><div><br></div><div>So I wrote this statement:<br>CASE WHEN contains($geometry , centroid($atlasgeometry)) THEN my label END<br>
<br></div><div>But it doesn't work...<br></div><div><br><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-28 9:06 GMT+01:00 Alexandre Neto [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5131732&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
<p dir="ltr">Yes you can. check the end of this post.</p>
<p dir="ltr"><a href="http://nathanw.net/2013/12/02/waiting-for-qgis-22-highlighting-current-atlas-feature/" rel="nofollow" link="external" target="_blank">http://nathanw.net/2013/12/02/waiting-for-qgis-22-highlighting-current-atlas-feature/</a></p>
<p dir="ltr">Alexandre Neto</p>
</div><div class="gmail_quote">Em 28/03/2014 07:56, "Pietro Rossin" <<a href="http://user/SendEmail.jtp?type=node&node=5131715&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> escreveu:<br type="attribution">
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div class="h5">
Hello people<br>
I'm using the atlas generator and I'm able to use a rule based renderer on<br>
the Atlas feature showed by the filter: $id = $atlasfeatureid<br>
<br>
I'm wondering if it is possible to render the symbology of a second layer<br>
using a distance criterion<br>
<br>
I know postgis can query a feature layer by distance with a second layer<br>
with st_dwithin(g1,g2,d).<br>
<br>
Is it possible to make something similar on the fly using the $geometry of<br>
the second layer and $atlasgeometry as the selector by distance of the<br>
feature to be rendered?<br>
<br>
bie<br>
pietro<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Atlas-generation-Rule-based-renderer-on-two-different-layers-tp5131712.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/Atlas-generation-Rule-based-renderer-on-two-different-layers-tp5131712.html</a><br>
Sent from the Quantum GIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-user mailing list<br>
</div></div><a href="http://user/SendEmail.jtp?type=node&node=5131715&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>
<br>_______________________________________________
<br>Qgis-user mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=5131715&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
<br>
<br>
<hr color="#cccccc" noshade size="1">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://osgeo-org.1560.x6.nabble.com/Atlas-generation-Rule-based-renderer-on-two-different-layers-tp5131712p5131715.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Atlas-generation-Rule-based-renderer-on-two-different-layers-tp5131712p5131715.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Atlas generation - Rule based renderer on two different layers??, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Atlas-generation-Rule-based-renderer-on-two-different-layers-tp5131712p5131732.html">Re: Atlas generation - Rule based renderer on two different layers??</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>