[GRASS-SVN] r65224 - grass/trunk/general/g.region
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 12 11:09:17 PDT 2015
Author: martinl
Date: 2015-05-12 11:09:17 -0700 (Tue, 12 May 2015)
New Revision: 65224
Modified:
grass/trunk/general/g.region/printwindow.c
Log:
g.region: print projection and zone info in shell script output (it's useful when building GRASS_REGION string)
Modified: grass/trunk/general/g.region/printwindow.c
===================================================================
--- grass/trunk/general/g.region/printwindow.c 2015-05-12 07:37:06 UTC (rev 65223)
+++ grass/trunk/general/g.region/printwindow.c 2015-05-12 18:09:17 UTC (rev 65224)
@@ -83,23 +83,12 @@
prj = G_database_projection_name();
if (!prj)
prj = "** unknown **";
- /*
- please remove before GRASS 7 released
- backward compatibility issue
- if (print_flag & PRINT_SH)
- {
- fprintf(stdout, "projection=%d\n", window->proj);
- fprintf(stdout, "zone=%d\n", window->zone);
- }
- else
- {
- fprintf(stdout, "%-*s: %d (%s)\n", width, "projection", window->proj, prj);
- fprintf(stdout, "%-*s: %d\n", width, "zone", window->zone);
- }
- */
-
- if (!(print_flag & PRINT_SH)) {
+ if (print_flag & PRINT_SH) {
+ fprintf(stdout, "projection=%d\n", window->proj);
+ fprintf(stdout, "zone=%d\n", window->zone);
+ }
+ else {
fprintf(stdout, "%-*s %d (%s)\n", width, "projection:",
window->proj, prj);
fprintf(stdout, "%-*s %d\n", width, "zone:", window->zone);
More information about the grass-commit
mailing list