[GRASS-SVN] r54319 - in grass/trunk/imagery/i.ortho.photo: . i.ortho.elev
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 16 15:16:46 PST 2012
Author: mmetz
Date: 2012-12-16 15:16:46 -0800 (Sun, 16 Dec 2012)
New Revision: 54319
Added:
grass/trunk/imagery/i.ortho.photo/i.ortho.camera/
Removed:
grass/trunk/imagery/i.ortho.photo/i.photo.camera/
Modified:
grass/trunk/imagery/i.ortho.photo/i.ortho.elev/main.c
Log:
i.photo.camera -> i.ortho.camera
Modified: grass/trunk/imagery/i.ortho.photo/i.ortho.elev/main.c
===================================================================
--- grass/trunk/imagery/i.ortho.photo/i.ortho.elev/main.c 2012-12-16 23:14:48 UTC (rev 54318)
+++ grass/trunk/imagery/i.ortho.photo/i.ortho.elev/main.c 2012-12-16 23:16:46 UTC (rev 54319)
@@ -40,7 +40,7 @@
struct GModule *module;
struct Option *group_opt, *elev_opt;
- struct Flag *list_flag;
+ struct Flag *list_flag, *print_flag;
char location[GMAPSET_MAX];
char mapset[GMAPSET_MAX];
@@ -79,6 +79,11 @@
list_flag->description =
_("List available raster maps in target mapset and exit");
+ print_flag = G_define_flag();
+ print_flag->key = 'p';
+ print_flag->description =
+ _("Print currently selected elevation map and exit");
+
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
@@ -109,6 +114,13 @@
G_fatal_error(_("Target location [%s] not found\n"), location);
}
+ if (print_flag->answer) {
+ I_get_group_elev(group, elev_layer, mapset_elev, tl, math_exp, units, nd);
+
+ exit(EXIT_SUCCESS);
+ }
+
+
G__create_alt_env();
G__setenv("LOCATION_NAME", location);
More information about the grass-commit
mailing list