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

Puzzled about how to create projection #200

Open
CGenie opened this issue Apr 25, 2024 · 0 comments
Open

Puzzled about how to create projection #200

CGenie opened this issue Apr 25, 2024 · 0 comments

Comments

@CGenie
Copy link

CGenie commented Apr 25, 2024

Hello,

I have make this projection:

echo '19 50' | proj -f '%.8f' +proj=ob_tran +o_proj=longlat +lon_0=19.3 +o_lat_p=37.5 +datum=WGS84 +no_defs

which produces:

-0.00336882     -0.04362623

I can do, in Python:

import pyproj
p = pyproj.Proj("+proj=ob_tran +o_proj=longlat +lon_0=19.3 +o_lat_p=37.5")
p(longitude=19, latitude=50)
>> (-0.003368824387898672, -0.043626234267364894)

However, when I do:

let proj = proj::Proj::new("+proj=ob_tran +o_proj=longlat +lon_0=19.3 +o_lat_p=37.5");
let point = proj.convert((19.0, 50.0));

However, I get:

ob_tran: Invalid latitude

What do I do wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant