Browse Source

r.sunmask: init PROJ transformation object, clean Makefile

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72607 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 years ago
parent
commit
6f12f9658c
2 changed files with 2 additions and 2 deletions
  1. 1 2
      raster/r.sunmask/Makefile
  2. 1 0
      raster/r.sunmask/g_solposition.c

+ 1 - 2
raster/r.sunmask/Makefile

@@ -2,9 +2,8 @@ MODULE_TOPDIR = ../..
 
 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
 

+ 1 - 0
raster/r.sunmask/g_solposition.c

@@ -115,6 +115,7 @@ long calc_solar_position(double longitude, double latitude, double timezone,
 		latitude);
 
 	oproj.pj = NULL;
+	tproj.def = NULL;
 
 	if (GPJ_init_transform(&iproj, &oproj, &tproj) < 0)
 	    G_fatal_error(_("Unable to initialize coordinate transformation"));