]> granicus.if.org Git - postgis/commitdiff
Try out the pj_get_def() method of finding the spheroid parameters, but: it doesn...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 6 Feb 2012 02:15:01 +0000 (02:15 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 6 Feb 2012 02:15:01 +0000 (02:15 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9036 b70326c6-7e19-0410-871a-916f4a2858ee

libpgcommon/lwgeom_transform.c

index 9500614563a0b583165301303fe73fce2f7dce76..0166d55990c6b88801afe2d09ca7e5cefcfc2bc0 100644 (file)
@@ -710,6 +710,7 @@ spheroid_init_from_srid(FunctionCallInfo fcinfo, int srid, SPHEROID *s)
 {
        projPJ pj1;
        projPJ pj2;
+       char *proj_str;
        PJ *p;
        
        if ( GetProjectionsUsingFCInfo(fcinfo, srid, srid, &pj1, &pj2) == LW_FAILURE)
@@ -718,6 +719,11 @@ spheroid_init_from_srid(FunctionCallInfo fcinfo, int srid, SPHEROID *s)
        if ( ! pj_is_latlong(pj1) )
                return LW_FAILURE;
        
+       /* Get the proj string 
+       proj_str = pj_get_def(pj1, 0);
+       POSTGIS_DEBUGF(4, "proj_str = %s", proj_str);
+       */
+       
        /* Get access to the proj internals */  
        p = (PJ*)pj1;