Hi Martin.<br><br>
> Someone probably forgot to add this function to python bindings...<br>
> I've revised the bindings and fixed this (and few more missing<br>
> functions) in svn trunk (r10467) and it will be included in version<br>
> 1.1.<br>
<br>
> But I don't think setScale() is the right method. In fact it just a<br>
> workaround for map composer to show layers with scale-based visibility<br>
> correctly. I'm not aware of direct method that would do it. You can<br>
> check QgsScaleCalculator code that calculates scale from map extent -<br>
> so you should be able to do inverse calculation.<br><br>
<div></div><div>Thanks, I will check it.<br><br></div><div></div><div>> Yes, you can do it by setting destination CRS in map renderer<br></div>
> associated with map canvas.<br><br>
<div></div><div>Yes, it works!<br></div><div><br>> Right :)<br></div>
> In case you need them, I can create those wrappers...<br>
<div></div><div><br>Please do it, I need them. :)</div><div><br>
>> 4. Implementing the QgsMapTool class I have no way to get the DoubleClick<br>
>> event, I did this:<br>
>> -------------<br>
>> def canvasDoubleClickEvent(self,event):<br>
>> print "Yes"<br>
>> -------------<br>
>> But it doesn't work. I get two (<font color="#ff0000">Raise</font>) <font color="#006600">Release</font> events instead of DoubleClick one.<br>
>> (I really want the DoubleClick event)<br>
</div>> I have no idea about this one. The bindings are in place, so the<br>
> problem might be in dispatch of double click from canvas.<br>:-/<br><br>
<div></div><div>Thank you Martin.<br><br></div><div></div>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br>
<br>