Boost logo

Geometry :

Subject: [ggl] Projections: Patch to get access to parameters
From: Mateusz Loskot (mateusz)
Date: 2009-06-17 05:12:48

Barend Gehrels wrote:
> Hi Chris,
>> I have a patch that adds a "params()" function to the projection
>> class, to return the projection parameters.
>> Rationale:
>> - I need access to the parameters for the pj_transform
>> - I need access to the "is_latlong" member of the parameters.
>> - It makes it easier to port proj4-specific code to ggl.
>> The patch only touches the "base..." files, so I don't think it
>> clashes with the automatic generator.
>> Problem:
>> - As I don't have the "parameters" template parameter in
>> projection.hpp, it is hardcoded.
> Sounds perfect. I'm glad there is interest in the projections.

One note, I remember we try to avoid abbreviations, so I'd vote for
parameters() function name.

As I understand it will return array of numerical parameters,
not string with proj.4 definition, am I correct?


Mateusz Loskot,

Geometry list run by mateusz at