[PROJ] Rads/Degs

Paul Ramsey pramsey at cleverelephant.ca
Wed Feb 13 10:04:59 PST 2019


> On Feb 13, 2019, at 12:06 AM, Even Rouault <even.rouault at spatialys.com> wrote:
> 
> On mardi 12 février 2019 11:16:56 CET Paul Ramsey wrote:
>> Is there some clean way to tell proj_create_crs_to_crs() that I would
>> like my input angular units and output angular units to be degrees? As
>> it stands I'm just using proj_angular_input and proj_angular_output to
>> test and apply the change pre/post transform.
> 
> Hum, with which PROJ version ?
> 
> I guess with PROJ 5.x, the angular unit was radians
> 
> With PROJ master, proj_create_crs_to_crs() object will expect (resp return) 
> the angular unit of the source (resp target) CRS, which will generally be 
> degrees (except a few ancient French SRS that take grads)
> 
> The function at 
> https://github.com/OSGeo/proj.4/blob/master/src/apps/cs2cs.cpp#L212
> can be used to get the angular unit of a CRS.

Hokay, that makes the renovation a little more complex, good to know! :)

P




More information about the PROJ mailing list