[GRASS-SVN] r48408 - grass/branches/develbranch_6/general/g.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 22 09:18:38 EDT 2011


Author: hamish
Date: 2011-09-22 06:18:38 -0700 (Thu, 22 Sep 2011)
New Revision: 48408

Modified:
   grass/branches/develbranch_6/general/g.proj/datumtrans.c
Log:
add some debug messages to help with #1452 (merge r48391 from trunk)

Modified: grass/branches/develbranch_6/general/g.proj/datumtrans.c
===================================================================
--- grass/branches/develbranch_6/general/g.proj/datumtrans.c	2011-09-22 13:13:00 UTC (rev 48407)
+++ grass/branches/develbranch_6/general/g.proj/datumtrans.c	2011-09-22 13:18:38 UTC (rev 48408)
@@ -61,19 +61,25 @@
 		GPJ_get_default_datum_params_by_name(dstruct.name,
 						     &defparams);
 
+	    G_debug(3, "set_datumtrans(): datum transform terms found "
+		    "with %d options", paramsets);
+
 	    if (status == 1 && paramsets > 1)
 		/* Parameters are missing and there is a choice to be made */
 		force = 1;
 
 	}
-	else
+	else {
 	    /* Datum name not found in table; can't do anything. */
+	    G_debug(3, "set_datumtrans(): Datum name not found in table.");
 	    force = 0;
-
+	}
     }
-    else
+    else {
 	/* No datum name; can't do anything. */
+	G_debug(3, "set_datumtrans(): Datum name either invalid or not supplied.");
 	force = 0;
+    }
 
     if (force) {
 	char *chosenparams = NULL;
@@ -97,6 +103,9 @@
 		    ("Invalid transformation number %d; valid range is 1 to %d",
 		     datumtrans, paramsets);
 
+	    G_debug(3, "set_datumtrans(): looking up available datum "
+		    "transforms for <%s>", datum);
+
 	    list = GPJ_get_datum_transform_by_name(datum);
 
 	    if (list != NULL) {



More information about the grass-commit mailing list