[Qgis-developer] OpenLayers plugin

motta.luiz at gmail.com motta.luiz at gmail.com
Tue Jun 8 08:00:45 EDT 2010


Borys,

Mybe helpfull

I make some changes in Plugin, see:
http://github.com/pka/qgis-openlayers-plugin/tree/master/openlayers/

Where:
1) Accept Proxy
2) Change the project to EPSG 900913
3) Set to "on the fly"
4) Set extent with coordinate transformed

With this the user no need make itens 2) and 3) and don´t change yours 
area of view (on the fly + Apply).

The plugin is avaible in repository (0.4 pre-release) status development 
in version 1.5


Borys Jurgiel escreveu:
> Hi, after today's upgrade I started to get such error:
>
>   File "/home/borys/.qgis/python/plugins/openlayers/openlayers_plugin.py", 
> line 72, in initGui
>     print "Spherical Mercator coordinate reference system is:\n  %s\n  EPSG:
> %d\n  SRS ID = %d" % (crs.description(), crs.epsg(), crs.srsid())
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 
> 71: ordinal not in range(128)
>
> It's because the CRS description is translateable and can contain non-ascii 
> characters.
>
> I see three problems here:
>
> 1) The conversion to unicode of course. 
>
> 2) I'd suggest to comment any "prints" when releasing plugins, because it make 
> a little mess in the console you call qgis from :)
>
> 3) The plugin always creates a "Generated CRS...blahblah", what's a bit 
> irritating, as there are already at least three Google Mercators in qgis 1.5 
> standard database (epsg:900913, epsg:3857, osgeo:41001). Could it add the 
> custom CRS only if necessary?
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>   



More information about the Qgis-developer mailing list