[Qgis-developer] GoogleLayers

Ivan Mincik ivan.mincik at gista.sk
Fri May 7 02:42:00 EDT 2010


On Friday 07 May 2010, you wrote:
> Hi,
>
> I test GoogleLayers 0.6.2 with QGIS 13406 under Windows XP Pro SP3. I
> start new project,
> set project CRS to Goggle Mercator (900913, on-the-fly reproject is
> OFF) and load shapefile
> from here http://gista.sk/dl/shp_google_merc.tar.gz
> Then I zoom to Ukraine and press plugin button. After this I get an error
>
> Traceback (most recent call last):
>   File
> "C:\OSGeo4W\apps\qgis-dev\python\plugins\GoogleLayers\GoogleLayers.py",
> line 151, in run
>     z = min(max(int(ceil(log(min(width / ((x2 - x1) * 256), height /
> ((y2 - y1) * 256)), 2))), 0), 19)
> ValueError: math domain error
>
Hi Alexander, 
I can do the same without any problem.
This exception is case when there are wrong coordinate values for counting zoom level. For example, when You are very 
far from the map or in wrong coordinates.

1. Can You try different places and different zoom levels ?
2. Can You please replace line z = min(max(int(ceil(log(min(width / ((x2 - x1) * 256), height /((y2 - y1) * 256)), 2))), 
0), 19) with z= 10 and try again ?


-- 
Ivan Mincik
Gista s.r.o.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100507/9e97f5d1/attachment.bin


More information about the Qgis-developer mailing list