[GRASS-SVN] r48391 - grass/trunk/general/g.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 21 02:57:02 EDT 2011
Author: hamish
Date: 2011-09-20 23:57:02 -0700 (Tue, 20 Sep 2011)
New Revision: 48391
Modified:
grass/trunk/general/g.proj/datumtrans.c
Log:
add some debug messages to help with #1452
Modified: grass/trunk/general/g.proj/datumtrans.c
===================================================================
--- grass/trunk/general/g.proj/datumtrans.c 2011-09-20 22:33:57 UTC (rev 48390)
+++ grass/trunk/general/g.proj/datumtrans.c 2011-09-21 06:57:02 UTC (rev 48391)
@@ -62,19 +62,25 @@
G_free(defparams);
GPJ_free_datum(&dstruct);
+ 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;
@@ -92,6 +98,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