Opened 4 years ago

#187 new enhancement

add proj -l* information to API

Reported by: chm Owned by: warmerdam
Priority: major Milestone:
Component: Core Version: unspecified
Keywords: Cc:


The current API from the PROJ4 library does not allow introspection into the allowed or available projections, datums, units,... This information used to be available via internal routines declared in projects.h.

However, projects.h has now been made completely internal however, the public API provides no method to get this information.

I would request additions to the API basically implementing programmatic access to the information in the various proj -l calls. Perhaps routines like: pj_get_ellps_str(), pj_get_datums_str(), pj_get_units_str(), pj_get_list_str(), and pj_get_prime_meridians_str(). These would return strings that could be viewed, parsed, whatever by programs using the proj4 library without the hack of calling 'proj -l > file' and parsing the output (with possible issues of version skew and lack of portability).

Related enhancement requests:

#173 Please add API call to get access to available datum names

#155 Add API method to check if a projection has an inverse

Related defect report:

#159 projects.h not installed

Change History (0)

Note: See TracTickets for help on using tickets.