[GRASS-SVN] r72441 - grass/trunk/general/g.region

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 20 12:53:40 PDT 2018


Author: mmetz
Date: 2018-03-20 12:53:40 -0700 (Tue, 20 Mar 2018)
New Revision: 72441

Modified:
   grass/trunk/general/g.region/printwindow.c
Log:
g.region: use 4D type with PROJ 5+

Modified: grass/trunk/general/g.region/printwindow.c
===================================================================
--- grass/trunk/general/g.region/printwindow.c	2018-03-20 19:51:46 UTC (rev 72440)
+++ grass/trunk/general/g.region/printwindow.c	2018-03-20 19:53:40 UTC (rev 72441)
@@ -539,10 +539,10 @@
 		G_fatal_error(_("Error in pj_do_proj (projection of input coordinate pair)"));
 
 #ifdef HAVE_PROJ_H
-	    c.lp.lam = DEG2RAD(longitude);
-	    c.lp.phi = DEG2RAD(latitude);
-	    c.lp.z = 0;
-	    c.lp.t = 0;
+	    c.lpzt.lam = DEG2RAD(longitude);
+	    c.lpzt.phi = DEG2RAD(latitude);
+	    c.lpzt.z = 0;
+	    c.lpzt.t = 0;
 	    fact = proj_factors(iproj.pj, c);
 	    convergence = RAD2DEG(fact.meridian_convergence);
 #else



More information about the grass-commit mailing list