I submitted the code, but it is only for the spherical Earth - and I believe it is in the current distribution.<br><br>I've also since added code to handle the Gnomonic (+gnom) projection, but I've only tested the forward projection. Again it is spherical only.<br>
<br><br>Richard<br><br><br><div class="gmail_quote">On Tue, Dec 8, 2009 at 6:36 PM, billinb <span dir="ltr"><<a href="mailto:billinb@nsidc.org">billinb@nsidc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Did this ever get finished? I just came across this problem today. I can work<br>
around it by using AJAX to get to the server and have proj4 do the<br>
transformation, but I would rather get it working in proj4js. Are there any<br>
plans to get it in? Do you need help finishing it? I don't know how to do<br>
the forward and reverse transformation on an ellipsoid but I could<br>
potentially take a look at the proj4 code. I could also take a look at<br>
writing the unit tests.<br>
<br>
Thanks,<br>
Brendan<br>
<div><div></div><div class="h5"><br>
<br>
Richard Marsden wrote:<br>
><br>
> Thanks Mike. I'll have a look when I return (currently on vacation!)<br>
><br>
> The problem with the inverse is knowing how to handle the ellipsoid rather<br>
> than the sphere.<br>
> Perhaps with a pen and paper or some web searching, I can find the answer.<br>
><br>
> Richard<br>
><br>
><br>
> On Thu, Jul 30, 2009 at 3:07 PM, Mike Adair <<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>> wrote:<br>
><br>
>> Hi Richard,<br>
>><br>
>> Thanks for this, I don't know about the math involved here but the<br>
>> coding<br>
>> looks fine. It's best to have an independent test point to check this<br>
>> against and you could add that to proj4js/test/testdata.js. I wouldn't<br>
>> want<br>
>> to add this without both the forward and inverse transforms however, can<br>
>> you<br>
>> do that one as well?<br>
>><br>
>> The best place to put this is as a patch on the Proj4js trac instance at:<br>
>> <a href="http://trac.osgeo.org/proj4js/" target="_blank">http://trac.osgeo.org/proj4js/</a>, create a new ticket and add a patch as<br>
>> an<br>
>> attachment.<br>
>><br>
>> Mike<br>
>><br>
>><br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> MetaCRS mailing list<br>
> <a href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/metacrs" target="_blank">http://lists.osgeo.org/mailman/listinfo/metacrs</a><br>
><br>
><br>
<br>
--<br>
</div>View this message in context: <a href="http://n2.nabble.com/Adding-Projection-Classes-to-Proj4js-tp3324145p4136564.html" target="_blank">http://n2.nabble.com/Adding-Projection-Classes-to-Proj4js-tp3324145p4136564.html</a><br>
Sent from the MetaCRS Mailing List mailing list archive at Nabble.com.<br>
<div><div></div><div class="h5">_______________________________________________<br>
MetaCRS mailing list<br>
<a href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/metacrs" target="_blank">http://lists.osgeo.org/mailman/listinfo/metacrs</a><br>
</div></div></blockquote></div><br>