<div dir="ltr"><div>Hi,</div><div> </div><div>I had a couple of questions that I was hoping could be answered here on the mailing list. I am trying to write some code to find the current zoomed in rectangular extent of my Map Canvas by the following <a href="http://qgis.org/api/classQgsMapCanvas.html#a878f0c387c9475d59c6aac425db01020">pyqgis API function </a></div>
<div> QgsMapCanvas.extent()</div><div> </div><div>however I receive the error</div><div> </div><div>TypeError: QgsMapCanvas.extent(): first argument of unbound method must have type 'QgsMapCanvas'</div><div> </div>
<div>Im not entirely certain what that is saying - first argument of unbound method?</div><div> </div><div>I want to apply this rectangular extent to the openlayers google earth imagery and extract the current imagery as a spatially referenced raster image. I dont know if anyone else has done this already or had some suggestions? I was thinking that one could get the rendered image view in the canvas and simply apply the extent mentioned above within the WGS84 datum?</div>
<div> </div><div>Any help is appreciated,</div><div>Cheers,</div><div>Bjorn</div></div>