Kaynağa Gözat

r.proj: avoid longitude wrapping by PROJ, this is done by GRASS

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72735 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 yıl önce
ebeveyn
işleme
68c4fb5146
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      raster/r.proj/main.c

+ 5 - 0
raster/r.proj/main.c

@@ -321,6 +321,11 @@ int main(int argc, char **argv)
     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"));