[GRASS-SVN] r72735 - grass/trunk/raster/r.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 24 12:39:09 PDT 2018


Author: mmetz
Date: 2018-05-24 12:39:09 -0700 (Thu, 24 May 2018)
New Revision: 72735

Modified:
   grass/trunk/raster/r.proj/main.c
Log:
r.proj: avoid longitude wrapping by PROJ, this is done by GRASS

Modified: grass/trunk/raster/r.proj/main.c
===================================================================
--- grass/trunk/raster/r.proj/main.c	2018-05-23 20:27:07 UTC (rev 72734)
+++ grass/trunk/raster/r.proj/main.c	2018-05-24 19:39:09 UTC (rev 72735)
@@ -321,6 +321,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