I'm running Alexander Hajnal's Python module (http://alephnull.net/software/gis/tile_writer.shtml) in QGIS (2.14.3, Win10 64) and I'm using the EPSG:3857
as crs.
I got this error:
"Traceback (most recent call last):
File "<input>", line 1, in <module>
File "c:/users/gregor~1/appdata/local/temp/tmpqgu4ow.py", line 107, in <module>
mx_min, my_min = gm.LatLonToMeters(lat, lon)
File "C:/Users/gregordavid/.qgis2/python/plugins\globalmercator.py", line 178, in LatLonToMeters
my = math.log( math.tan((90 + lat) * math.pi / 360.0 )) / (math.pi / 180.0)
ValueError: math domain error"
Can I solve the problem?