I am trying to convert QGIS x,y points into the lat, long coordinates. I have (335687.7471962841, 4487822.535352517) supposedly point to somewhere in the Chicago metropolitan area. I tried the accepted answer here (without inits) and got (37.34869549513416 3.0155343399807206) which is somewhere in the Mediterranean Sea. Where am I doing wrong?
Here is what I have done:
from pyproj import Proj, transform
inProj = Proj('epsg:3857')
outProj = Proj('epsg:4326')
x1,y1 = 335687.7471962841,4487822.535352517
x2,y2 = transform(inProj,outProj,x1,y1)
print (x2,y2)
Output:
37.34869549513416 3.0155343399807206