-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+R_A appears to have no effect in Geod() and CRS() #1157
Comments
https://pyproj4.github.io/pyproj/stable/api/geod.html#pyproj.Geod.__init__
This behavior is expected for Geod in it's current state. A PR is welcome adding support for R_A. |
Thanks, I missed that bit in the documentation. Do the same limitations apply to both Geod and CRS? I don't see an equivalent section in the docs for CRS (looking at this page: https://pyproj4.github.io/pyproj/stable/api/crs/crs.html). I found that Lines 503 to 516 in 5723f37
Is that a completely unrelated issue? |
I believe that the CRS issue is related to: OSGeo/PROJ#3170 |
I found that issue before and I suspected as much, thank you for clarifying. That said, why is |
This comment might be helpful: #1061 (comment)
For CRS, this is likely due to how PROJ handles it. |
https://proj.org/usage/ellipsoids.html#ellipsoid-spherification-parameters
I am thinking this may be worth raising an issue upstream: https://github.com/OSGeo/PROJ/ >>> from pyproj import CRS
>>> cc = CRS("+proj=lonlat +ellps=WGS84")
>>> cc.ellipsoid
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1],
ID["EPSG",7030]]
>>> ccr = CRS("+proj=lonlat +ellps=WGS84 +R_A")
>>> ccr.ellipsoid
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1],
ID["EPSG",7030]]
|
Thanks @snowman2, I'll see about asking on their mailing list or issue tracker. |
Oops sorry, I meant to leave this open as an enhancement request for |
Problem description
The
+R_A
option is not being honored in Pyproj, whereas it seems to work fine using thegeod
CLI tool.This problem happens if I use
pyproj.Geod()
orpyproj.CRS().get_geod()
.Code sample
My Python code:
Equivalent CLI invocation using
geod
:Expected Output
I expected the output from
geod1
to be different fromgeod2
, and thatgeod2.f
should be0
.I was also surprised to see that the output from the
geod
command line tool was different from the output frompyproj.Geod.fwd
. Presumably the difference can be ascribed to different options when compiling the CLI tool (installed via MacPorts) and the Python package (installed via the wheels on PyPI).I further expected to see "trace" logging output comparable to what the
geod
CLI tool emitted, but I suppose that's a separate issue.Environment Information
MacOS 12.4 on ARM64.
Versions
Installation method
Installed using Pip in a Venv:
The text was updated successfully, but these errors were encountered: