Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I found previous posts mentioning the same problem. However, I did not manage to solve the issue with the presented solutions.

I am using QGIS 1.8.0. I use a generated CRS (I temporarily set the project CRS to EPSG:3857; but changed nothing). The on-the-fly projection is enabled.

When I installed the OpenLayers plugin (through the QGIS interface), I managed to open the OpenLayers Overview and I had a look at the Google Physical layer. When i wanted to add the layer to the map, it took too long and I aborted the process.

The day after, OpenLayers Overview did not work. The window did appear in the bottom left corner but I couldn't visualise any layer. I received the error message: "Error loading page".

When I clicked the "add layer" button, I received the following error message:

An error has occured while executing Python code:

Traceback (most recent call last): File "C:/Users/Elsa BUSSIERE/.qgis//python/plugins\openlayers_plugin\openlayers_layer.py", line 109, in draw self.render(rendererContext) File "C:/Users/Elsa BUSSIERE/.qgis//python/plugins\openlayers_plugin\openlayers_layer.py", line 164, in render olWidth = rendererContext.extent().width() / olRes UnboundLocalError: local variable 'olRes' referenced before assignment

Python version: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]

QGIS version: 1.8.0-Lisboa Lisboa, 6416f38

Python path: ['C:/PROGRA~2/Quantum GIS Lisboa/apps/qgis/./python', 'C:/Users/Elsa BUSSIERE/.qgis//python', 'C:/Users/Elsa BUSSIERE/.qgis//python/plugins', 'C:/PROGRA~2/Quantum GIS Lisboa/apps/qgis/./python/plugins', 'C:\PROGRA~2\Quantum GIS Lisboa\bin\python27.zip', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\DLLs', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\plat-win', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\lib-tk', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\qgis\bin', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\site-packages', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~2\Quantum GIS Lisboa\apps\qgis\python\plugins\fTools\tools', 'C:/Users/Elsa BUSSIERE/Desktop/Q/Q Sanbona']

Does anyone have any idea of what I should do? Thank you very much. Elsa

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.