I've been using proj4j for probably over a year now, and this is the first problem I've run into.<br><br>Thanks for a much needed project and great support.<br><br>Fitz<br><br><div class="gmail_quote">On Thu, Jan 12, 2012 at 1:52 AM, Martin Davis <span dir="ltr"><<a href="mailto:mtnclimb@telus.net">mtnclimb@telus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div 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 type="cite">
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>
</div>
<br>_______________________________________________<br>
Proj4j mailing list<br>
<a href="mailto:Proj4j@lists.osgeo.org">Proj4j@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/proj4j" target="_blank">http://lists.osgeo.org/mailman/listinfo/proj4j</a><br>
<br></blockquote></div><br>