[MetaCRS] Adding Projection Classes to Proj4js
Brendan Billingsley
billinb at nsidc.org
Wed Dec 9 11:48:44 EST 2009
My schedule over the next month is rather hectic, so I would not hold up
waiting on me. There is a chance I will get the free time this week, if
not I would guess that I won't get back to this until January.
Thanks,
Brendan
Mike Adair wrote:
> I wasn't planning on looking into this just yet but for an example of
> handling sphere/ellipse see the laea.js projection, just replace the
> math within the "if (this.sphere){ } else {}" blocks with code from
> Proj.4.
>
> I am hoping to put out a 1.0.1 release next week with some bug fixes
> and the cassini projection but will wait if you plan to do some work
> on this.
>
> Mike
>
>
> Richard Marsden wrote:
>> I submitted the code, but it is only for the spherical Earth - and I
>> believe it is in the current distribution.
>>
>> 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.
>>
>>
>> Richard
>>
>>
>> On Tue, Dec 8, 2009 at 6:36 PM, billinb <billinb at nsidc.org
>> <mailto:billinb at nsidc.org>> wrote:
>>
>>
>> Did this ever get finished? I just came across this problem today.
>> I can work
>> around it by using AJAX to get to the server and have proj4 do the
>> transformation, but I would rather get it working in proj4js. Are
>> there any
>> plans to get it in? Do you need help finishing it? I don't know
>> how to do
>> the forward and reverse transformation on an ellipsoid but I could
>> potentially take a look at the proj4 code. I could also take a
>> look at
>> writing the unit tests.
>>
>> Thanks,
>> Brendan
>>
>>
>> Richard Marsden wrote:
>> >
>> > Thanks Mike. I'll have a look when I return (currently on
>> vacation!)
>> >
>> > The problem with the inverse is knowing how to handle the
>> ellipsoid rather
>> > than the sphere.
>> > Perhaps with a pen and paper or some web searching, I can find
>> the answer.
>> >
>> > Richard
>> >
>> >
>> > On Thu, Jul 30, 2009 at 3:07 PM, Mike Adair
>> <madair at dmsolutions.ca <mailto:madair at dmsolutions.ca>> wrote:
>> >
>> >> Hi Richard,
>> >>
>> >> Thanks for this, I don't know about the math involved here
>> but the
>> >> coding
>> >> looks fine. It's best to have an independent test point to
>> check this
>> >> against and you could add that to proj4js/test/testdata.js. I
>> wouldn't
>> >> want
>> >> to add this without both the forward and inverse transforms
>> however, can
>> >> you
>> >> do that one as well?
>> >>
>> >> The best place to put this is as a patch on the Proj4js trac
>> instance at:
>> >> http://trac.osgeo.org/proj4js/, create a new ticket and add a
>> patch as
>> >> an
>> >> attachment.
>> >>
>> >> Mike
>> >>
>> >>
>> >
>> > _______________________________________________
>> > MetaCRS mailing list
>> > MetaCRS at lists.osgeo.org <mailto:MetaCRS at lists.osgeo.org>
>> > http://lists.osgeo.org/mailman/listinfo/metacrs
>> >
>> >
>>
>> --
>> View this message in context:
>>
>> http://n2.nabble.com/Adding-Projection-Classes-to-Proj4js-tp3324145p4136564.html
>>
>> Sent from the MetaCRS Mailing List mailing list archive at
>> Nabble.com.
>> _______________________________________________
>> MetaCRS mailing list
>> MetaCRS at lists.osgeo.org <mailto:MetaCRS at lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/metacrs
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> MetaCRS mailing list
>> MetaCRS at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/metacrs
>>
>
More information about the MetaCRS
mailing list