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
Transformer with MercatorAConversion with lat/lon of natural origin returns ProjError #1089
Comments
|
>>> MercatorAConversion(longitude_natural_origin=10).to_proj4()
'+proj=merc +lon_0=10 +k=1 +x_0=0 +y_0=0'
>>> MercatorAConversion(latitude_natural_origin=10).to_proj4() |
It seems that the PROJ only supports |
Yes, that does seem to be the case: |
Related to #1036, would be good to raise an exception when exporting to PROJ string if NULL is returned. |
What's the reason for keeping On an unrelated note, the |
For completeness sake when creating CRS and exporting to WKT. This may be needed even if PROJ does not support it for transformations.
|
https://epsg.org/coord-operation-method_9804/Mercator-variant-A.html
Seems like it should always be 0. I am thinking a check on |
Makes sense to me. I'd also note the constraint in the documentation. |
Sounds good to me. A PR with the change is welcome. |
Happy to submit a PR soon. Should a warning be raised if a non-zero |
Problem description
The above code returns
ProjError: Input is not a transformation.
Iflatitude_natural_origin=0
andlongitude_natural_origin=0
, no error is returned.Expected Output
No error.
Environment Information
pyproj -v
Installation method
Conda environment information
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: