Jelajahi Sumber

update modules to https://trac.osgeo.org/grass/changeset/63827

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63828 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 tahun lalu
induk
melakukan
4a18c78289

+ 2 - 2
general/g.proj/create.c

@@ -57,8 +57,8 @@ void modify_projinfo()
 	(old_cellhd.proj != cellhd.proj)) {
 	/* Recreate the default, and current window files if projection
 	 * number or zone have changed */
-	G__put_window(&cellhd, "", "DEFAULT_WIND");
-	G__put_window(&cellhd, "", "WIND");
+	G_put_element_window(&cellhd, "", "DEFAULT_WIND");
+	G_put_element_window(&cellhd, "", "WIND");
 	G_message(_("Default region was updated to the new projection, but if you have "
 		    "multiple mapsets `g.region -d` should be run in each to update the "
 		    "region from the default"));

+ 2 - 2
general/g.region/main.c

@@ -756,7 +756,7 @@ int main(int argc, char *argv[])
     if ((name = parm.save->answer)) {
 	temp_window = window;
 	G_adjust_Cell_head3(&temp_window, 0, 0, 0);
-	if (G__put_window(&temp_window, "windows", name) < 0)
+	if (G_put_element_window(&temp_window, "windows", name) < 0)
 	    G_fatal_error(_("Unable to set region <%s>"), name);
     }
 
@@ -768,7 +768,7 @@ int main(int argc, char *argv[])
 
     if (flag.savedefault->answer) {
 	if (strcmp(G_mapset(), "PERMANENT") == 0) {
-	    G__put_window(&window, "", "DEFAULT_WIND");
+	    G_put_element_window(&window, "", "DEFAULT_WIND");
 	}
 	else {
 	    G_fatal_error(_("Unable to change default region. "

+ 1 - 1
general/g.setproj/main.c

@@ -639,7 +639,7 @@ int main(int argc, char *argv[])
 	G_free_key_value(in_unit_keys);
     }				/* if */
 
-    if (G__put_window(&cellhd, "", "DEFAULT_WIND") < 0)
+    if (G_put_element_window(&cellhd, "", "DEFAULT_WIND") < 0)
 	G_fatal_error(_("Unable to write to DEFAULT_WIND region file"));
     fprintf(stderr,
 	    _("\nProjection information has been recorded for this location\n\n"));

+ 1 - 1
raster/r.external/window.c

@@ -89,7 +89,7 @@ void update_default_window(struct Cell_head *cellhd)
     cur_wind.east = cur_wind.west + cur_wind.cols * cur_wind.ew_res;
 
     if (strcmp(G_mapset(), "PERMANENT") == 0) {
-	G__put_window(&cur_wind, "", "DEFAULT_WIND");
+	G_put_element_window(&cur_wind, "", "DEFAULT_WIND");
 	G_message(_("Default region for this location updated")); 
     }
     G_put_window(&cur_wind);

+ 1 - 1
raster/r.in.gdal/main.c

@@ -780,7 +780,7 @@ int main(int argc, char *argv[])
 	cur_wind.east = cur_wind.west + cur_wind.cols * cur_wind.ew_res;
 
 	if (strcmp(G_mapset(), "PERMANENT") == 0) {
-	    G__put_window(&cur_wind, "", "DEFAULT_WIND");
+	    G_put_element_window(&cur_wind, "", "DEFAULT_WIND");
 	    G_message(_("Default region for this location updated"));
 	}
 	G_put_window(&cur_wind);

+ 1 - 1
vector/v.in.ogr/main.c

@@ -1632,7 +1632,7 @@ int main(int argc, char *argv[])
 	cur_wind.east = cur_wind.west + cur_wind.cols * cur_wind.ew_res;
 
 	if (strcmp(G_mapset(), "PERMANENT") == 0) {
-	    G__put_window(&cur_wind, "", "DEFAULT_WIND");
+	    G_put_element_window(&cur_wind, "", "DEFAULT_WIND");
 	    G_message(_("Default region for this location updated"));
 	}
 	G_put_window(&cur_wind);