We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reported by thibbo on 22 Oct 2012 06:08 UTC The stereographic projection multiplies the coordinates by 2 where lat_0 is set to 0.
The commands used are :
$ wgs='+title=long/lat:WGS84 +proj=longlat +ellps=WGS84 +datum=WGS84 +units=m'
$ echo "-75 35" | cs2cs -f "%.3f" $wgs +to +proj=stere +lat_0=0.00001 +lon_0=-96.0 +ellps=WGS84 +datum=WGS84 +units=m +x_0=0.0 +y_0=0.0 +k=0.9
For the same point : lat_0=0.00001 gives 1912137.545 3711082.505 lat_0=0 gives 3824275.304 7422167.152
The bug is at line 44 of PJ_stere.c : A = 2. * P->akm1 / (1. + cosX * coslam); This line may be : A = P->akm1 / (1. + cosX * coslam);
Sorry for my English, I am french.
Migrated-From: https://trac.osgeo.org/proj/ticket/194
The text was updated successfully, but these errors were encountered:
Fixed issue #194 (Bug with the stereographic projection at equator) t…
93024d9
…hat multiplied equatorial coordinates by 2
TST: Update image for fixed Stereographic projection.
4fa8b7c
This is a known bug fix in proj.4 5.0.0, wherein lat_0=0 used to erroneously multiply results by 2. See OSGeo/PROJ#194
4e55d83
a5e9661
71383ed
18bcf0f
No branches or pull requests
Reported by thibbo on 22 Oct 2012 06:08 UTC
The stereographic projection multiplies the coordinates by 2 where lat_0 is set to 0.
The commands used are :
$ wgs='+title=long/lat:WGS84 +proj=longlat +ellps=WGS84 +datum=WGS84 +units=m'
$ echo "-75 35" | cs2cs -f "%.3f" $wgs +to +proj=stere +lat_0=0.00001 +lon_0=-96.0 +ellps=WGS84 +datum=WGS84 +units=m +x_0=0.0 +y_0=0.0 +k=0.9
For the same point :
lat_0=0.00001 gives 1912137.545 3711082.505
lat_0=0 gives 3824275.304 7422167.152
The bug is at line 44 of PJ_stere.c :
A = 2. * P->akm1 / (1. + cosX * coslam);
This line may be :
A = P->akm1 / (1. + cosX * coslam);
Sorry for my English, I am french.
Migrated-From: https://trac.osgeo.org/proj/ticket/194
The text was updated successfully, but these errors were encountered: