[GRASS-SVN] r72607 - grass/trunk/raster/r.sunmask

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 8 07:06:51 PDT 2018


Author: mmetz
Date: 2018-04-08 07:06:51 -0700 (Sun, 08 Apr 2018)
New Revision: 72607

Modified:
   grass/trunk/raster/r.sunmask/Makefile
   grass/trunk/raster/r.sunmask/g_solposition.c
Log:
r.sunmask: init PROJ transformation object, clean Makefile

Modified: grass/trunk/raster/r.sunmask/Makefile
===================================================================
--- grass/trunk/raster/r.sunmask/Makefile	2018-04-08 14:04:34 UTC (rev 72606)
+++ grass/trunk/raster/r.sunmask/Makefile	2018-04-08 14:06:51 UTC (rev 72607)
@@ -2,9 +2,8 @@
 
 PGM = r.sunmask
 
-LIBES = $(GPROJLIB) $(RASTERLIB) $(GISLIB) $(MATHLIB) $(PROJLIB)
+LIBES = $(GPROJLIB) $(RASTERLIB) $(GISLIB) $(MATHLIB)
 DEPENDENCIES = $(GPROJDEP) $(RASTERDEP) $(GISDEP)
-EXTRA_INC = $(PROJINC)
 
 include $(MODULE_TOPDIR)/include/Make/Module.make
 

Modified: grass/trunk/raster/r.sunmask/g_solposition.c
===================================================================
--- grass/trunk/raster/r.sunmask/g_solposition.c	2018-04-08 14:04:34 UTC (rev 72606)
+++ grass/trunk/raster/r.sunmask/g_solposition.c	2018-04-08 14:06:51 UTC (rev 72607)
@@ -115,6 +115,7 @@
 		latitude);
 
 	oproj.pj = NULL;
+	tproj.def = NULL;
 
 	if (GPJ_init_transform(&iproj, &oproj, &tproj) < 0)
 	    G_fatal_error(_("Unable to initialize coordinate transformation"));



More information about the grass-commit mailing list