瀏覽代碼

r.in.gdal: init PROJ transformation object

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72604 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 年之前
父節點
當前提交
62645c1618
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      raster/r.in.gdal/main.c

+ 1 - 0
raster/r.in.gdal/main.c

@@ -931,6 +931,7 @@ static void SetupReprojector(const char *pszSrcWKT, const char *pszDstLoc,
 	    G_fatal_error(_("Unable to get projection units of target location"));
 	if (pj_get_kv(oproj, out_proj_info, out_unit_info) < 0)
 	    G_fatal_error(_("Unable to get projection key values of target location"));
+	tproj->def = NULL;
 	if (GPJ_init_transform(iproj, oproj, tproj) < 0)
 	    G_fatal_error(_("Unable to initialize coordinate transformation"));
     }