[Proj] Getting Proj information after pj_init has been thrown

Frank Warmerdam warmerdam at pobox.com
Mon Jan 5 11:27:21 EST 2009

Till wrote:
> Hi all and a very happy new year to anyone.
> We’re using proj.4 as API and are quite happy with it.
> So, our base reference is the proj_api.h header.
> Is there any way to retrieve PJ information (like major axis or any 
> other projection information) after a pj_init() has been called?
> We did try to use projects.h in place of proj_api.h but this brings us 
> to compilation nightmare since this one ‘typedef’s a PVALUE that 
> winreg.h is also ‘typedef’ying (we’re using M$ platform as you may have 
> understood).
> Any help in that manner would be welcome.


One option is to segregate the use of projects.h in a source file that does
not include windows.h and dependent stuff.  Then you can directly access
into the PJ structure.

Generally speaking internal access to the PJ structure is not encouraged.

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/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Proj mailing list