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

gs48 problems #162

Closed
proj4-bot opened this issue May 22, 2015 · 1 comment
Closed

gs48 problems #162

proj4-bot opened this issue May 22, 2015 · 1 comment
Milestone

Comments

@proj4-bot
Copy link

@proj4-bot proj4-bot commented May 22, 2015

Reported by fwillett on 10 May 2012 17:36 UTC
System:
OS - Windows 7 Ultimate, SP1, 64 bit
CPU - Intel Core2 Quad CPU @ 2.83 GHz
Memory - 1.86 GB
Running in Oracle VirtualBox 4.16 r74713

Installation:
proj version - Rel. 4.8.0, 6 March 2012
Microsoft Visual Studio 2010 Professional Version 10.0.40219.1 SP1Rel
Build commands:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
nmake /f makefile.vc
nmake /f makefile.vc install-all

Note: This builds a 32 bit version of the programs and libraries.

In the following the OS prompt is "$" and the proj prompt is "%"

gs48 - 1) The origin of the projection is at long/lat (-96,-39) and it should
be at (-96,+39)
Modified pj_mod_ster.c to change the sign on phi0 for the gs48 projection
// P->phi0 = DEG_TO_RAD * -39.;
P->phi0 = DEG_TO_RAD * 39.;

$ ./proj.exe +proj=gs48
%-96 39
-0.00 16805051.65

$ ./proj.exe +proj=gs48 -I
%0 0
168dE 39dS
%1 1
95d59'59.958"W 39d11'17.725"S

   2) Inverse problem at the origin with modified code. 
      NOTE: This problem is evident in the unmodified code in the example above.

$ proj +proj=gs48 -I
%0 0
168dE 39dN
%1 1
95d59'59.958"W 39d11'17.79"N

Migrated-From: https://trac.osgeo.org/proj/ticket/162

@kbevers kbevers closed this in 282d6ab Oct 18, 2016
@kbevers kbevers added this to the 4.10.0 milestone Oct 18, 2016
@kbevers
Copy link
Member

@kbevers kbevers commented Oct 18, 2016

Fixed with 0eccceb and 282d6ab

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.