[Qgis-user] OpenStreetMap Error

Andre Joost andre+joost at nurfuerspam.de
Fri Aug 29 08:20:25 PDT 2014


Am 29.08.2014 17:10, schrieb Glenn Weller:
> 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


Try it this way:

Set project CRS to EPSG:3857, enableing On-the-fly-reprojection
Load the shapefile
Add Openlayers with OSM background.

I am not sure what projection your shapefile is in, but QGIS treats it 
as WGS 84, but the coordinates do not fit to that.

It might help to change in Settings -> Options -> CRS to 'Prompt for 
CRS' for new layers.

HTH,
André Joost




More information about the Qgis-user mailing list