[GRASS-SVN] r70236 - grass/trunk/general/g.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 4 03:32:36 PST 2017
Author: martinl
Date: 2017-01-04 03:32:36 -0800 (Wed, 04 Jan 2017)
New Revision: 70236
Modified:
grass/trunk/general/g.proj/output.c
Log:
partly revert accident commit (r70235)
Modified: grass/trunk/general/g.proj/output.c
===================================================================
--- grass/trunk/general/g.proj/output.c 2017-01-04 11:28:48 UTC (rev 70235)
+++ grass/trunk/general/g.proj/output.c 2017-01-04 11:32:36 UTC (rev 70236)
@@ -30,7 +30,7 @@
void print_projinfo(int shell, const char *force_epsg)
{
- int i, quote;
+ int i;
char path[GPATH_MAX];
if (check_xy(shell))
@@ -40,19 +40,10 @@
fprintf(stdout,
"-PROJ_INFO-------------------------------------------------\n");
for (i = 0; i < projinfo->nitems; i++) {
- quote = FALSE;
- if (strcmp(projinfo->key[i], "name") == 0)
- quote = TRUE;
-
- if (shell) {
- if (quote)
- fprintf(stdout, "%s=\"%s\"\n", projinfo->key[i], projinfo->value[i]);
- else
- fprintf(stdout, "%s=%s\n", projinfo->key[i], projinfo->value[i]);
- }
- else {
- fprintf(stdout, "%-11s: %s\n", projinfo->key[i], projinfo->value[i]);
- }
+ if (shell)
+ fprintf(stdout, "%s=%s\n", projinfo->key[i], projinfo->value[i]);
+ else
+ fprintf(stdout, "%-11s: %s\n", projinfo->key[i], projinfo->value[i]);
}
/* EPSG code is preserved for historical metadata interest only:
More information about the grass-commit
mailing list