<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5921" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=148421122-10022010>Hi
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148421122-10022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148421122-10022010>I have a scenario in
a plugin where a change to a (python plugin) renderer on one layer may cause a
change to other layers rendered with the same renderer. Logically this
should emit a signal (directly or indirectly) to request </SPAN></FONT><FONT
face=Arial size=2><SPAN class=148421122-10022010>request the other layers to be
refreshed. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148421122-10022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148421122-10022010>I can sort of do
this at the moment because layer change triggers a map refresh, and which in
turn calls the startRender event in the renderer of the affected
layers, which can then update themselves as necessary. (Another
probably better way to do it would be to raise a signal when the renderer
changes which a handler uses to update all the affected layers.)
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148421122-10022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148421122-10022010>However I'm worried
that this won't work if the render cache is in use. I'm guessing this
caches rendered layers and only refreshes the changed layers, rather than the
entire map? </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148421122-10022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148421122-10022010>If so, then I need
to be able to do</SPAN></FONT><FONT face=Arial size=2><SPAN
class=148421122-10022010> signal to a layer that it needs refreshing.
At the moment I can only see how to refresh the entire map canvas. Have I
missed something in the API?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148421122-10022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148421122-10022010>Thanks<BR>Chris</SPAN></FONT></DIV>
<DIV>
<HR>
<DIV>This message contains information, which is confidential and may be subject
to legal privilege. <BR>If you are not the intended recipient, you must not
peruse, use, disseminate, distribute or copy this message.<BR>If you have
received this message in error, please notify us immediately (Phone 0800 665 463
or <A href="mailto:sinfo@linz.govt.nz">info@linz.govt.nz</A> ) and destroy the
original message.</DIV>
<DIV>LINZ accepts no responsibility for changes to this email, or for any
attachments, after its transmission from LINZ.</DIV>
<DIV> </DIV>
<DIV><STRONG>Thank you.</STRONG> <BR></DIV>
<HR>
</DIV>
</BODY></HTML>