[Proj] Getting Proj information after pj_init has been thrown

Till till at free.fr
Tue Jan 6 18:29:16 EST 2009


Yes, but this 'segregation' is actually hard to achieve since windows.h is
implicitly somewhere used but not in an obvious way, as long as a project
may rely on a couple of different library includes (like ours) and probably
altering the way it is done, may bring some side effects we'd like to avoid.

On the concerns, I may understand that internal access to the whole PJ
structure is not encouraged (although I think it should be available as
"read only", at least).
My feeling is one may however want to be able to access basic initialization
data that have been generated out of the initialization (like major/minor
axis, etc.) that we could just implement adding a pj_info(char*info)
retriever tool or some pj_getMajor/MinorAxis whatever.

Many thanks for considering this request.

-----Message d'origine-----
De : proj-bounces at lists.maptools.org
[mailto:proj-bounces at lists.maptools.org] De la part de Frank Warmerdam
Envoyé : lundi 5 janvier 2009 17:27
À : PROJ.4 and general Projections Discussions
Objet : Re: [Proj] Getting Proj information after pj_init has been thrown

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.

Till,

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

_______________________________________________
Proj mailing list
Proj at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj



More information about the Proj mailing list