[GRASS-SVN] r72605 - grass/trunk/raster/r.sunhours

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 8 07:03:46 PDT 2018


Author: mmetz
Date: 2018-04-08 07:03:46 -0700 (Sun, 08 Apr 2018)
New Revision: 72605

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

Modified: grass/trunk/raster/r.sunhours/Makefile
===================================================================
--- grass/trunk/raster/r.sunhours/Makefile	2018-04-08 14:01:09 UTC (rev 72604)
+++ grass/trunk/raster/r.sunhours/Makefile	2018-04-08 14:03:46 UTC (rev 72605)
@@ -2,11 +2,9 @@
 
 PGM = r.sunhours
 
-LIBES = $(GPROJLIB) $(RASTERLIB) $(GISLIB) $(PROJLIB)
+LIBES = $(GPROJLIB) $(RASTERLIB) $(GISLIB)
 DEPENDENCIES = $(GPROJDEP) $(RASTERDEP) $(GISDEP)
 
-EXTRA_INC = $(PROJINC)
-
 include $(MODULE_TOPDIR)/include/Make/Module.make
 
 default: cmd

Modified: grass/trunk/raster/r.sunhours/main.c
===================================================================
--- grass/trunk/raster/r.sunhours/main.c	2018-04-08 14:01:09 UTC (rev 72604)
+++ grass/trunk/raster/r.sunhours/main.c	2018-04-08 14:03:46 UTC (rev 72605)
@@ -225,6 +225,7 @@
 	G_free_key_value(in_unit_info);
 
 	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