<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have committed a fix for this to SVN. Thanks for noticing this!<br>
<br>
On 1/11/2012 3:03 PM, Gertjan Idema wrote:
<blockquote cite="mid:1326323013.2873.44.camel@laptop-ubuntu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="GENERATOR" content="GtkHTML/3.32.2">
Then I remembered that there was a difference between proj
(c-version) and proj4j in handling the +towgs parameters.<br>
The c version has some conversion code for parameters 4-7.<br>
Parameters 4-6 get converted from arc seconds to radians.
(param=param*pi/180/3600)<br>
Parameter 7 gets converted from ppm to scaling factor
(param=1+param/1000000)<br>
<br>
Here's the code from pj_datum_set.c:<br>
/* transform from arc seconds to radians */<br>
projdef->datum_params[3] *= SEC_TO_RAD;<br>
projdef->datum_params[4] *= SEC_TO_RAD;<br>
projdef->datum_params[5] *= SEC_TO_RAD;<br>
/* transform from parts per million to scaling factor */<br>
projdef->datum_params[6] =
(projdef->datum_params[6]/1000000.0) + 1;<br>
<br>
This code seems to be missing in proj4j
</blockquote>
</body>
</html>