I am trying to convert co-ordinates (-33.75, 150) from epsg:3857 to epsg:28356 in Python.
Using both of the examples in post How to convert projected coordinates to lat/lon using Python?, I get the following errors.
With ogr, osr:
"ERROR 1: latitude or longitude exceeded limits"
with projpy:
"RuntimeError: latitude or longitude exceeded limits"
What am I doing wrong?
EDIT: changing to epsg:4326 fixed the issue.
Best Answer
As @minus34 said above, you almost certainly have latitude and longitude, rather than eastings and northings, so your projection is likely to be WGS84 (or because you're in Australia, GDA94).
To do the transformation in
pyproj
(assuming GDA 94) you can use:Which gives you an easting and northing of:
For reference, the easting and northing in EPSG:3857 are: