[PROJ] Rads/Degs

Even Rouault even.rouault at spatialys.com
Wed Feb 13 10:22:23 PST 2019


On mercredi 13 février 2019 10:04:59 CET Paul Ramsey wrote:
> > 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! :)

I'd advise to "skip" PROJ 5.x, that is handle it just like the PROJ 4.x series 
using the good old proj_api.h, but target more PROJ master / 6.0 (which is 
within a few hours before seeing a beta/RC I think)

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the PROJ mailing list