In my earlier reply I spoke too soon. Since I had successfully used the
OpenLayers in QGIS 2.2 I decided to upgrade to QGIS 2.4. I uninstalled QGIS 2.2
and then installed QGIS 2.4. Starting with a new project I opened a shapefile I
have used recently (it is located in Central California) and then did the
following:
Selected from the menu: Web --> OpenLayers plugin --> Google Maps --> Google
Streets
I then received the following error message:
**** Begin Error Message *****
An error has occured while executing Python code:
Traceback (most recent call last):
File
"C:/Users/gweller/.qgis2/python/plugins\openlayers_plugin\weblayers\weblayer.py",
line 97, in addLayer
self._addLayerCallback(self)
File
"C:/Users/gweller/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py",
line 135, in addLayer
self.setMapCrs(coordRefSys)
File
"C:/Users/gweller/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py",
line 176, in setMapCrs
extMap = coodTrans.transform(extMap,
QgsCoordinateTransform.ForwardTransform)
QgsCsException: forward transform of
(-238347.281680, 80050.655379)
PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=merc +a=6378137
+b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m
+nadgrids=@null +wktext +no_defs
Error: latitude or longitude exceeded limits
Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a
Python path: ['C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\\processing',
'C:/PROGRA~1/QGISCH~1/apps/qgis/./python', u'C:/Users/gweller/.qgis2/python',
u'C:/Users/gweller/.qgis2/python/plugins',
'C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins',
'C:\\PROGRA~1\\QGISCH~1\\bin\\python27.zip',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\DLLs',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\plat-win',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\lib-tk',
'C:\\PROGRA~1\\QGISCH~1\\bin', 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\GDAL-1.11.0-py2.7-win32.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win32.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\python_dateutil-2.2-py2.7.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\pytz-2014.2-py2.7.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win32.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\six-1.6.1-py2.7.egg',
'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\Users\\gweller\\.qgis2\\python\\plugins\\mmqgis/forms',
'C:\\PROGRA~1\\QGISCH~1\\apps\\qgis\\python\\plugins\\fTools\\tools',
'C:/AdHoc/American Canyon EQ/V1']
***** End Error Message *****
The coordinates in the coordinate window started out in Decimal Degrees (the
shapefile I am using has a projection of WGS84/EPSG:4326) but after trying to
bring in the street layer the coordinates in the coordinate window show up as
meters. If I am reading the error log correctly it is trying to bring in the
Street Layer as some kind of Mercator projection. How do I get this to stop and
get OpenLayers to work again?
Glenn
________________________________
From: Andre Joost <[email protected]>
To: [email protected]
Sent: Thursday, August 28, 2014 11:03 PM
Subject: Re: [Qgis-user] OpenStreetMap Error
Am 28.08.2014 21:19, schrieb Glenn Weller:
>
> I also received a response from André who wondered if I was trying to
> map too large an area (like the entire U.S.). I am trying to obtain a
> Google/Yahoo map for an area in central California that I have been
> able to successfully map in QGIS 1.8. I doubt that the area I am
> trying to map is too large.
>
There are two ways to use OSM in QGIS:
1) by downloading OSM raw data with Vector -> Openstreetmap
2) by using the Openlayers plugin, which will install into the web menu.
From your first message, it was not clear for me which one you have
used in the past. The first choice (formerly known as Openstreetmap
plugin) is restricted in the area, because you will be downloading
Megabytes of data, and you have to set up rendering rules yourself.
The second one should fit your needs better. The OpenLayers plugin had
some obstacles during the upgrade from QGIS 1.8 to 2.0 and from 2.2 to
2.4. That is the reason why old projects with Openlayers background
don't run with newer versions. Deleting the layer, and adding it should
work (except for the known bug).
HTH,
André Joost
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user