Ver código fonte

libproj: use new PROJ API starting with proj-5.1.0

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72779 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 6 anos atrás
pai
commit
effe7075f4
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      lib/proj/do_proj.c

+ 2 - 2
lib/proj/do_proj.c

@@ -218,7 +218,7 @@ int GPJ_transform(const struct pj_info *info_in,
     ok = proj_errno(info_trans->pj);
 
     if (ok < 0) {
-	G_warning(_("proj_trans() failed: %d"), ok);
+	G_warning(_("proj_trans() failed: %s"), proj_errno_string(ok));
 	return ok;
     }
 
@@ -443,7 +443,7 @@ int GPJ_transform_array(const struct pj_info *info_in,
 	G_free(z);
 
     if (ok < 0) {
-	G_warning(_("proj_trans() failed: %d"), ok);
+	G_warning(_("proj_trans() failed: %s"), proj_errno_string(ok));
     }
 #else
     /* PROJ 4 variant */