[GRASS-SVN] r50459 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 26 00:49:52 EST 2012


Author: hamish
Date: 2012-01-25 21:49:52 -0800 (Wed, 25 Jan 2012)
New Revision: 50459

Modified:
   grass/trunk/lib/vector/Vlib/header.c
Log:
add a debug statement and a comment about its error handling

Modified: grass/trunk/lib/vector/Vlib/header.c
===================================================================
--- grass/trunk/lib/vector/Vlib/header.c	2012-01-26 05:26:14 UTC (rev 50458)
+++ grass/trunk/lib/vector/Vlib/header.c	2012-01-26 05:49:52 UTC (rev 50459)
@@ -615,7 +615,15 @@
     case PROJECTION_LL:
     case PROJECTION_SP:
 	return G__projection_name(n);
+    default:
+	G_debug(1, "Vect_get_proj_name(): "
+		   "Vect_get_proj() returned an invalid result (%d)", n);
+	break;
     }
+
+    /* Vect_get_proj() didn't return a useful result,
+       fallback to G_database_projection_name() */
+    /* (is this behavior desirable?) */
     if (!lookup(PROJECTION_FILE, "name", name, sizeof(name)))
 	strcpy(name, _("Unknown projection"));
 



More information about the grass-commit mailing list