[Proj] rHEALPix new parameters

Frank Warmerdam warmerdam at pobox.com
Thu Oct 13 23:43:58 EST 2011


On 11-10-13 06:22 PM, Michael Speth wrote:
> Greetings,
>     I've implemented the HEALPix projection and have now moved on to
> implementing a new projection called rHEALPix.  I have two questions
> regarding this implementation.
>
> * rHEALPix requires 2 new parameters (spole and npole).  How do I
> specify those parameters on the command line?  (In the code I am using
> the pr_param function.

Michael,

To the best of my knowledge you just grab them with pj_param().  You
don't need to do anything special to declare them.

> * The rHEALPix projection uses the HEALPix projection.  So is it
> possible to create a header with corresponding c file that shares common
> functions between the HEALPix and rHEALPix projections?  If so, how
> should I name the files?

I would suggest just putting both projections in one source file to avoid
needing the external header file.  It is not uncommon to have more than one
related projection in a single file (eg. tmerc and utm in PJ_tmerc).

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the Proj mailing list