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
from http://trac.osgeo.org/proj4js/ticket/83
I think there is an error in transformation from WGS84 geographical to a mercator projection with setting lat_ts parameter.
Proj4js.defs["EPSG:70212"]="+proj=merc +lon_0=0 +lat_ts=54 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"; >var src = new Proj4js.Proj('EPSG:4326'); var dest = new Proj4js.Proj('EPSG:70212'); var point = new Proj4js.Point(8.4166666666,54.3); Proj4js.transform(src, dest, point);
The calculated result with proj4js is: x=550727.0313354909 y=4227680.065624116 By using cs2cs or http://cs2cs.mygeodata.eu/ I get the following results: x=551929.429093 y=4236910.32443
The calculated result with proj4js is: x=550727.0313354909 y=4227680.065624116
By using cs2cs or http://cs2cs.mygeodata.eu/ I get the following results: x=551929.429093 y=4236910.32443
The text was updated successfully, but these errors were encountered:
so running the following (which is equivalent to what you wrote but in more compact syntax)
proj4("+proj=merc +lon_0=0 +lat_ts=54 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs").forward([8.4166666666,54.3])
I get [551929.4290927176, 4236910.324427377]
[551929.4290927176, 4236910.324427377]
Sorry, something went wrong.
I'm getting the same result as well, it must have been fixed with some other fixes, closing this one
madair
No branches or pull requests
from http://trac.osgeo.org/proj4js/ticket/83
The text was updated successfully, but these errors were encountered: