[Proj] List of supported projections and ellipsoids

LOTT Jean-Baptiste jean-baptiste.lott at asia.thalesgroup.com
Mon Mar 15 20:08:53 EST 2010


Hi Frank,

Thanks for the answer, I saw they were in projects.h but I had some compilation errors while including it so that meant to me that it's not the right thing to do. I'll try to figure it out for the short term but I think it would be good to put them int proj_api.h. In my case I want to let the user know which projection he wants to apply to his map, so the goal is to offer a list of projections from where he can choose the one he wants.

Thanks,

LOTT Jean-Baptiste wrote:
> Hi all,
> 
>  
> 
> I would need to get the list of projections and ellipsoids that I can 
> use with the library. What I am looking for is a list like the one that 
> is returned when calling cs2cs -lp and cs2cs -le. Those functions use 
> pj_get_list_ref and pj_get_ellps_ref to get those lists, is there any 
> way to do the same thing using the API?

Jean-Baptiste,

I see that those functions and the structure defines they are based on
are not currently part of the public api in proj_api.h.  However, they
are available if you include the internal projects.h include file.  I
generally discourage this, but it may still be the expedient thing for
you to do.

I might make sense to move these structure definitions and function
prototypes to proj_api.h if we want to consider them generally available.

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