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

PROJ6 issues with +proj=ob_tran +o_proj=latlon #1601

Closed
fmaussion opened this issue Sep 11, 2019 · 1 comment

Comments

@fmaussion
Copy link

@fmaussion fmaussion commented Sep 11, 2019

Hi, I'm a pyproj user and have been told to open an issue here instead. Background: pyproj4/pyproj#424

The output of this command is off by a huge amount in recent PROJ versions:

$ 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'

outputs 107.25 -27.89 0.00, but it should rather output something like -22.24 -0.06

@rouault rouault changed the title PROJ6 issues with +init=epsg:4326 PROJ6 issues with +proj=ob_tran +o_proj=latlon Sep 11, 2019
@rouault

This comment has been minimized.

Copy link
Member

@rouault rouault commented Sep 13, 2019

Fix in #1610
Workaround: use +o_proj=longlat

@rouault rouault closed this in e1fabf9 Sep 13, 2019
rouault added a commit that referenced this issue Sep 13, 2019
Fix support for +proj=ob_tran +o_proj=lonlat/latlong/latlon (only +o_proj=longlat worked) (fixes #1601)
backporting bot pushed a commit that referenced this issue Sep 13, 2019
…proj=longlat worked) (fixes #1601)
rouault added a commit that referenced this issue Sep 13, 2019
[Backport 6.2] Fix support for +proj=ob_tran +o_proj=lonlat/latlong/latlon (only +o_proj=longlat worked) (fixes #1601)
mir06 added a commit to wegener-center/pyCAT that referenced this issue Oct 1, 2019
Due to the bug in proj4 (see issue OSGeo/PROJ#1601)
the package must be installed in version 6.1.0.

Added two tests that run the proposed checking of the
two methods.

Closes: #5
@snowman2 snowman2 mentioned this issue Nov 1, 2019
2 of 2 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.