<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Yes, setting the projection to Google Mercator (EPSG:900913) is very
    important (you can use the "Enable 'on the fly' CRS transformation"
    box to reproject your data, assuming the projection for your data is
    set correctly). This error looks like a QT problem, though.  Do you
    have qt-python installed?<br>
    -Matt<br>
    <br>
    On 05/10/2011 03:19 AM, Michael Spencer wrote:
    <blockquote cite="mid:DUB106-w18A2978A58CAD6BF24EE37BA870@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      I find it quite temperamental (v1.6), but generally only if I have
      data already loaded that is in a different projection. Starting a
      project using google mercator seems to be fine. Although often
      after adding the data I have to drag the map about before it
      refreshes and then it zooms out to the whole world.<br>
      <br>
      Michael<br>
      <br>
      <br>
      <hr size="2" width="100%">> Message: 2<br>
      > Date: Tue, 10 May 2011 08:50:50 +0100<br>
      > From: M.E.Dodd <a class="moz-txt-link-rfc2396E" href="mailto:m.e.dodd@open.ac.uk"><m.e.dodd@open.ac.uk></a><br>
      > Subject: [Qgis-user] is the openlayers plugin not working?<br>
      > To: <a class="moz-txt-link-rfc2396E" href="mailto:qgis-user@lists.osgeo.org">"qgis-user@lists.osgeo.org"</a>
      <a class="moz-txt-link-rfc2396E" href="mailto:qgis-user@lists.osgeo.org"><qgis-user@lists.osgeo.org></a><br>
      > Message-ID:<br>
      >
<a class="moz-txt-link-rfc2396E" href="mailto:4E7B5FE52E3BEA48AD9AB3AD11BA17A37CD09146DE@KIELDERCMS1.open.ac.uk"><4E7B5FE52E3BEA48AD9AB3AD11BA17A37CD09146DE@KIELDERCMS1.open.ac.uk></a><br>
      > Content-Type: text/plain; charset="us-ascii"<br>
      > <br>
      > Noticed openlayers plugin stopped working some time ago but
      even after reinstalling it still does not work in qgis1.6 or 1.7.
      Had used it quite happily with previous versions of qgis and
      indeed these versions.<br>
      > <br>
      > An error has occured while executing Python code:<br>
      > <br>
      > Traceback (most recent call last):<br>
      > File "C:/Documents and
      Settings/med4/.qgis/python/plugins\openlayers\openlayers_plugin.py",
      line 95, in setVisible<br>
      > self.__initGui()<br>
      > File "C:/Documents and
      Settings/med4/.qgis/python/plugins\openlayers\openlayers_plugin.py",
      line 82, in __initGui<br>
      > self.__setDocWidget()<br>
      > File "C:/Documents and
      Settings/med4/.qgis/python/plugins\openlayers\openlayers_plugin.py",
      line 78, in __setDocWidget<br>
      > self.__oloWidget = OpenLayersOverviewWidget(self.__iface,
      self.__dockwidget, self.__olLayerTypeRegistry)<br>
      > File "C:/Documents and
      Settings/med4/.qgis/python/plugins\openlayers\openlayers_ovwidget.py",
      line 82, in __init__<br>
      > self.__init()<br>
      > File "C:/Documents and
      Settings/med4/.qgis/python/plugins\openlayers\openlayers_ovwidget.py",
      line 91, in __init<br>
      > proxy = getProxy()<br>
      > File "C:/Documents and
      Settings/med4/.qgis/python/plugins\openlayers\tools_network.py",
      line 34, in getProxy<br>
      > elif proxyType in ["4","HttpCachingProxy"] and QT_VERSION
      >= 0X040400:
      proxy.setType(QtNetwork.QNetworkProxy.HttpCachingProxy)<br>
      > NameError: global name 'QT_VERSION' is not defined<br>
      > <br>
      > Python version:<br>
      > 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
      (Intel)]<br>
      > <br>
      > <br>
      > QGIS version:<br>
      > 1.7.0-Trunk Trunk, 15229<br>
      > <br>
      > Python path: ['C:/OSGeo4W/apps/qgis-dev/./python',
      'C:/Documents and Settings/med4/.qgis/python', 'C:/Documents and
      Settings/med4/.qgis/python/plugins',
      'C:/OSGeo4W/apps/qgis-dev/./python/plugins',
      'C:\\OSGeo4W\\bin\\python25.zip',
      'C:\\OSGeo4W\\apps\\Python25\\DLLs',
      'C:\\OSGeo4W\\apps\\Python25\\lib',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk',
      'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
      'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
      'C:\\Documents and
      Settings\\med4\\.qgis\\python\\plugins\\fTools\\tools',
      'C:\\Documents and
      Settings\\med4\\.qgis\\python\\plugins\\mmqgis/forms']<br>
      > <br>
      > <br>
      > -- <br>
      > The Open University is incorporated by Royal Charter (RC
      000391), an exempt charity in England & Wales and a charity
      registered in Scotland (SC 038302).<br>
      > -------------- next part --------------<br>
      > An HTML attachment was scrubbed...<br>
      > URL:
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20110510/597de9bf/attachment-0001.html">http://lists.osgeo.org/pipermail/qgis-user/attachments/20110510/597de9bf/attachment-0001.html</a><br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>