[Proj] rHEALPix new parameters

Michael Speth spethm at landcareresearch.co.nz
Mon Oct 17 21:00:02 EST 2011


Thank you Frank!
   I've added your recommended fixes and it works!  We will now start 
thoroughly testing.  Do you have any suggestions for testing?

Thanks

On 17/10/11 16:19, Frank Warmerdam wrote:
> On Sun, Oct 16, 2011 at 7:18 PM, Michael Speth
> <spethm at landcareresearch.co.nz>  wrote:
>> Hello.  I updated the source to use the trunk.  Here are the updated
>> changes.
>>
>> http://code.scenzgrid.org/index.php/p/scenzgrid-proj4/source/tree/master/src/PJ_healpix.c
>>
>> Thank you for looking over the source!
> Michael,
>
> Ah, you called my bluff!  Debugging through the code
> I see the problem is (at least) that you did not specify a
> type code in the pj_param code.  You need to prefix the
> parameter name with a type code character - 'i' for an
> integer parameter.
>
> eg.
>      int npole = pj_param(P->ctx, P->params,"inpole").i;
>      int spole = pj_param(P->ctx,P->params,"ispole").i;
>
> By the way, it is more conventional to collect such parameters
> in your initialization functions and to declare them as part of
> your projection details via the PROJ_PARMS__ macro.  You can
> see an example of this early in PJ_gstmerc.c for instance.
>
> Best regards,


-- 
Michael Speth
Scientific Programmer
Landcare Research



More information about the Proj mailing list