From 77e0e30b0bbe2310fc92c66991ae4b285090e06f Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 6 Feb 2012 02:15:01 +0000 Subject: [PATCH] Try out the pj_get_def() method of finding the spheroid parameters, but: it doesn't work. git-svn-id: http://svn.osgeo.org/postgis/trunk@9036 b70326c6-7e19-0410-871a-916f4a2858ee --- libpgcommon/lwgeom_transform.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c index 950061456..0166d5599 100644 --- a/libpgcommon/lwgeom_transform.c +++ b/libpgcommon/lwgeom_transform.c @@ -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; -- 2.40.0