[Qgis-developer] Problem Displaying Google Satellite Layer in QGIS 1.7.4 Using OpenLayer Plugin 0.93 on Windows 7

Bruce, Bob (CON) Bob.Bruce at gov.mb.ca
Fri Sep 21 08:41:24 PDT 2012


After doing more testing and investigation I have determined that the problem lies somewhere in my corporate (government) IT environment. When I connect the same computer to the internet through a FORTIGATE box that is "tunnelling" through and ignoring proxy rules, etc. then it displays the layers fine. Incidentally the Bing satellite layer in Winnipeg looks really nice, but the Google satellite layer isn't too shabby either.

Would the author of the OpenLayers plugin be possibly able to shed some light on what in the IT environment might be preventing this plugin from working properly?

Thanks,
	Bob Bruce

-----Original Message-----
From: qgis-user-bounces at lists.osgeo.org [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Bruce, Bob (CON)
Sent: September-19-12 4:13 PM
To: 'QGIS User List'
Subject: [Qgis-user] Problem Displaying Google Satellite Layer in QGIS 1.7.4 Using OpenLayer Plugin 0.93 on Windows 7

When I try and add a google satellite layer to my project, I get a python error and traceback  as follows:
            An error has occured while executing Python code:

            Traceback (most recent call last):
              File "C:/Users/bbruce/.qgis/python/plugins\openlayers\openlayers_layer.py", line 109, in draw
                self.render(rendererContext)
              File "C:/Users/bbruce/.qgis/python/plugins\openlayers\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.7.4-Wroclaw Wroclaw, 411aff6 After I close this window, a QGIS error window appears with the message: "Could not draw Google Satellite because:" with no other text in it.

I have one vector layer displayed, this has a CRS of 26914 (NAD83 UTM Zone 14), my project has a CRS of 3857 (from reading list postings this seemed to be the appropriate CRS to use) and I have "On the fly reprojection" enabled. \

I can see my vector layer OK but not the google satellite layer. I have verified that QGIS is communicating with the WWW by connecting to an external WMS server.

Can someone help me to get google satellite imagery working, please.

	Bob Bruce

******************************************************************************
**    Bob Bruce, FEC, P.Eng.         Geomatics Support Engineer
**    Bob.Bruce at gov.mb.ca           Geospatial Technology Services Management
**    work # (204) 945-6636              GeoManitoba, Manitoba Conservation and Water Stewardship
**    FAX  # (204) 945-1365             1007 Century Street,
**                                                  Winnipeg, Manitoba, Canada, R3H 0W4
**                                                  49-54-31.85N,97-12-16.08W
**
**             Check out our digital maps at: http://mli2.gov.mb.ca/
**                 and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
******************************************************************************





More information about the Qgis-developer mailing list