فهرست منبع

gislib: disable test for datum names in G_compare_projections()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71657 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 سال پیش
والد
کامیت
4948ce86aa
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      lib/gis/make_loc.c

+ 5 - 2
lib/gis/make_loc.c

@@ -190,8 +190,11 @@ int G_compare_projections(const struct Key_Value *proj_info1,
 	if ((d_1 && !d_2) || (!d_1 && d_2))
 	if ((d_1 && !d_2) || (!d_1 && d_2))
 	    return -3;
 	    return -3;
 
 
-	if (d_1 && d_2 && strcmp(d_1, d_2))
-	    return -3;
+	if (d_1 && d_2 && strcmp(d_1, d_2)) {
+	    /* different datum short names can mean the same datum,
+	     * see lib/gis/datum.table */
+	    G_debug(1, "Different datum names");
+	}
     }
     }
 
 
     /* -------------------------------------------------------------------- */
     /* -------------------------------------------------------------------- */