[GRASS-SVN] r72736 - grass/branches/releasebranch_7_4/raster/r.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 24 12:40:13 PDT 2018


Author: mmetz
Date: 2018-05-24 12:40:13 -0700 (Thu, 24 May 2018)
New Revision: 72736

Modified:
   grass/branches/releasebranch_7_4/raster/r.proj/main.c
Log:
r.proj: avoid longitude wrapping by PROJ, this is done by GRASS (backport trunk r72735)

Modified: grass/branches/releasebranch_7_4/raster/r.proj/main.c
===================================================================
--- grass/branches/releasebranch_7_4/raster/r.proj/main.c	2018-05-24 19:39:09 UTC (rev 72735)
+++ grass/branches/releasebranch_7_4/raster/r.proj/main.c	2018-05-24 19:40:13 UTC (rev 72736)
@@ -310,6 +310,11 @@
     if ((in_proj_info = G_get_projinfo()) == NULL)
 	G_fatal_error(_("Unable to get projection info of input map"));
 
+    /* apparently the +over switch must be set in the input projection,
+     * not the output latlon projection */
+    if (curr_proj == PROJECTION_LL)
+	G_set_key_value("+over", "defined", in_proj_info);
+
     if ((in_unit_info = G_get_projunits()) == NULL)
 	G_fatal_error(_("Unable to get projection units of input map"));
 



More information about the grass-commit mailing list