Replies: 1 comment
-
|
https://pyproj4.github.io/pyproj/stable/build_crs.html from pyproj.crs import GeographicCRS, ProjectedCRS
from pyproj.crs.coordinate_operation import UTMConversion
proj_crs = ProjectedCRS(
conversion=UTMConversion("16", "S"), geodetic_crs=GeographicCRS(datum="GDA2020")
)This produces: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This stems from an issue that I currently have: I want to convert a pair of latitude/longitude in UTM in the GDA2020 datum.
From my experiments I am thinking that this is not supported. Maybe it is just the fact that I don't use the library properly so let me explain the way I have been trying to realize this tramsformation:
Let's say thatI want to convert the (latitude, longitude) pair: (-27.45745, 153.05715) to UTM in the GDA2020 datum. The UTM zone is 56J.
returns the following error:
pyproj.exceptions.CRSError: Invalid projection: +proj=utm +zone=56J, +south +ellps=GRS80 +datum=GDA2020 +units=m +no_defs +type=crs: (Internal Proj Error: proj_create: Error -9 (unknown elliptical parameter name))The error message is a bit inaccurate as the ellipsoid
GRS80is actually known if I use the datumNAD83(for North American pairs of latitude/longitude).Is the GDA2020 datum defined in Pyproj? If not, is there a way to do this conversion using the library?
I stumbled across posts to convert from GDA94 to GDA2020 but I am struggling to get the GDA1994 to work in pyproj.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions