Skip to content
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

Inconsistent results between 2.2.1and 2.3.1 #424

Closed
fmaussion opened this issue Sep 3, 2019 · 2 comments
Closed

Inconsistent results between 2.2.1and 2.3.1 #424

fmaussion opened this issue Sep 3, 2019 · 2 comments
Labels
proj Bug or issue related to PROJ

Comments

@fmaussion
Copy link

Code Sample, a copy-pastable example if possible

import pyproj
print(pyproj.__version__)

srs = '+ellps=WGS84 +proj=ob_tran +o_proj=latlon +to_meter=0.0174532925199433 +o_lon_p=0.0 +o_lat_p=80.5 +lon_0=357.5 +no_defs'

p1 = pyproj.Proj(srs)
p2 = pyproj.Proj('+init=EPSG:4326')

print(pyproj.transform(p1, p2, -20, -9))

Problem description

The result of the above transformation is correct in 2.2.1, and completely off in 2.3.1:

2.2.1
(-22.243473889042903, -0.06328365194179102)

and

2.3.1
(107.25283559403462, -27.893778994303773)

Expected Output

Same results in both versions.

@snowman2
Copy link
Member

snowman2 commented Sep 3, 2019

Likely related: OSGeo/PROJ#1525

@snowman2
Copy link
Member

snowman2 commented Sep 3, 2019

This matches the output of PROJ. I would raise this issue here: https://github.com/OSGeo/PROJ

$ echo "-20 -9" | cs2cs -f '%.2f' '+proj=ob_tran +o_proj=latlon +ellps=WGS84 +to_meter=0.0174532925199433 +o_lon_p=0.0 +o_lat_p=80.5 +lon_0=357.5 +no_defs' '+init=epsg:4326'
107.25	-27.89 0.00

@snowman2 snowman2 closed this as completed Sep 3, 2019
@snowman2 snowman2 added proj Bug or issue related to PROJ and removed bug labels Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj Bug or issue related to PROJ
Projects
None yet
Development

No branches or pull requests

2 participants