Преглед изворни кода

More information can be added to the ELEVATION file, bug fixing

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70854 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin пре 8 година
родитељ
комит
98a0d52b69
1 измењених фајлова са 5 додато и 10 уклоњено
  1. 5 10
      imagery/i.ortho.photo/i.ortho.elev/main.c

+ 5 - 10
imagery/i.ortho.photo/i.ortho.elev/main.c

@@ -128,8 +128,8 @@ int main(int argc, char *argv[])
     	strcpy(location_elev, loc_opt->answer);
     if(mapset_opt->answer)
     	strcpy(mapset_elev, mapset_opt->answer);
-    if(elev_opt->answer)
-    	strcpy(elev_layer, elev_opt->answer);
+    /*if(elev_opt->answer)
+    	strcpy(elev_layer, elev_opt->answer);*/
     if(math_opt->answer)
     	strcpy(math_exp, math_opt->answer);
     if(unit_opt->answer)
@@ -193,16 +193,11 @@ int main(int argc, char *argv[])
 	    select_current_env();
 	    G_fatal_error(_("Raster map <%s> not found"), elev_opt->answer);
 	}
-
+	/* load information from the ELEVATION file in the GROUP*/
 	I_get_group_elev(group, elev_layer, mapset_elev, location_elev, math_exp, units, nd);
-	overwrite = G_getenv_nofatal("OVERWRITE") != NULL;
-	    
-	if (!overwrite && *elev_layer) {
-	G_warning(_("Elevation for group <%s> is already set to <%s>"),
-	          group, elev_layer);
-	}
 	/*Modify ELEVATION file in source GROUP */
-	I_put_group_elev(group,elev_layer,mapset_elev,location_elev, math_exp, units, nd);
+	I_put_group_elev(group,elev_opt->answer,mapset_opt->answer,loc_opt->answer, 
+			math_opt->answer, unit_opt->answer, nd_opt->answer);
 	/* select current location */
 	select_current_env();