[postgis-devel] [PostGIS] #1541: Stop relying on private projects.h PROJ header

PostGIS trac at osgeo.org
Mon Feb 6 12:57:55 PST 2012

#1541: Stop relying on private projects.h PROJ header
 Reporter:  strk                   |       Owner:  strk         
     Type:  defect                 |      Status:  new          
 Priority:  high                   |   Milestone:  PostGIS 2.0.0
Component:  build/upgrade/install  |     Version:  trunk        
 Keywords:                         |  

Comment(by pramsey):

 OK, so here's my proposed solution:
 For the upcoming proj 4.8, which I will cross my fingers and hope for a
 legal spheroid accessor API, we'll do full SRID support as currently
 implemented, but using a public API.
 For earlier proj releases, which do not have a public API, we have two
 (a) continue to use the private projects.h header and reading out of the
 PJ struct for spheroid information.
 (b) continue to accept SRIDs other than 4326, using the pj_is_latlon
 method to test that they are geographic systems, but we will fill in the
 spheroid using the WGS84 parameters, while issuing a notice warning of
 what we're doing, and only use the public proj_api.h.

Ticket URL: <http://trac.osgeo.org/postgis/ticket/1541#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.

More information about the postgis-devel mailing list