Selaa lähdekoodia

update keys to use new element names (https://trac.osgeo.org/grass/ticket/2409)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63230 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 vuotta sitten
vanhempi
commit
b94dccf9c9

+ 2 - 2
display/d.legend/main.c

@@ -89,12 +89,12 @@ int main(int argc, char **argv)
 	  "of the graphics monitor.");
 
     opt_rast2d = G_define_standard_option(G_OPT_R_MAP);
-    opt_rast2d->key = "rast";
+    opt_rast2d->key = "raster";
     opt_rast2d->required = NO;
     opt_rast2d->guisection = _("Input");
 
     opt_rast3d = G_define_standard_option(G_OPT_R3_MAP);
-    opt_rast3d->key = "rast3d";
+    opt_rast3d->key = "raster3d";
     opt_rast3d->required = NO;
     opt_rast3d->guisection = _("Input");
 

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

@@ -161,14 +161,14 @@ int main(int argc, char *argv[])
     parm.region->guisection = _("Existing");
 
     parm.raster = G_define_standard_option(G_OPT_R_MAP);
-    parm.raster->key = "rast";
+    parm.raster->key = "raster";
     parm.raster->required = NO;
     parm.raster->multiple = YES;
     parm.raster->description = _("Set region to match raster map(s)");
     parm.raster->guisection = _("Existing");
 
     parm.raster3d = G_define_standard_option(G_OPT_R3_MAP);
-    parm.raster3d->key = "rast3d";
+    parm.raster3d->key = "3draster";
     parm.raster3d->required = NO;
     parm.raster3d->multiple = NO;
     parm.raster3d->description =
@@ -177,7 +177,7 @@ int main(int argc, char *argv[])
     parm.raster3d->guisection = _("Existing");
 
     parm.vect = G_define_standard_option(G_OPT_V_MAP);
-    parm.vect->key = "vect";
+    parm.vect->key = "vector";
     parm.vect->required = NO;
     parm.vect->multiple = YES;
     parm.vect->label = _("Set region to match vector map(s)");

+ 1 - 1
gui/wxpython/animation/g.gui.animation.py

@@ -85,7 +85,7 @@ def main():
 
     if numInputs > 1:
         grass.fatal(_("%s=, %s=, %s= and %s= are mutually exclusive.") %
-                ("rast", "vect", "strds", "stvds"))
+                ("raster", "vector", "strds", "stvds"))
         
     if numInputs > 0:
         # We need to initialize the temporal framework in case

+ 2 - 2
lib/gis/parser_standard_options.c

@@ -825,8 +825,8 @@ struct Option *G_define_standard_option(int opt)
 	Opt->type = TYPE_STRING;
 	Opt->key_desc = "name";
 	Opt->required = NO;
-	Opt->answer = "rast";
-	Opt->options = "rast,vect,rast3d";
+	Opt->answer = "raster";
+	Opt->options = "raster,vector,3draster";
 	Opt->description = _("Type of the input map");
 	break;
     case G_OPT_T_TYPE:

+ 2 - 2
lib/python/temporal/open_stds.py

@@ -52,7 +52,7 @@ def open_old_stds(name, type, dbif=None):
 
     if type == "strds" or type == "rast" or type == "raster":
         sp = dataset_factory("strds", id)
-    elif type == "str3ds" or type == "rast3d" or type == "raster3d":
+    elif type == "str3ds" or type == "rast3d" or type == "3draster":
         sp = dataset_factory("str3ds", id)
     elif type == "stvds" or type == "vect" or type == "vector":
         sp = dataset_factory("stvds", id)
@@ -108,7 +108,7 @@ def check_new_stds(name, type, dbif=None, overwrite=False):
 
     if type == "strds" or type == "rast" or type == "raster":
         sp = dataset_factory("strds", id)
-    elif type == "str3ds" or type == "rast3d" or type == "raster3d":
+    elif type == "str3ds" or type == "rast3d" or type == "3draster":
         sp = dataset_factory("str3ds", id)
     elif type == "stvds" or type == "vect" or type == "vector":
         sp = dataset_factory("stvds", id)

+ 2 - 2
raster/r.carve/main.c

@@ -78,11 +78,11 @@ int main(int argc, char **argv)
 			    "to raster and subtracts depth from the output DEM.");
 
     parm.inrast = G_define_standard_option(G_OPT_R_INPUT);
-    parm.inrast->key = "rast";
+    parm.inrast->key = "raster";
     parm.inrast->description = _("Name of input raster elevation map");
 
     parm.invect = G_define_standard_option(G_OPT_V_INPUT);
-    parm.invect->key = "vect";
+    parm.invect->key = "vector";
     parm.invect->label =
 	_("Name of input vector map containing stream(s)");