소스 검색

libproj: don't mess up PROJCS versus GEOGCS (fixes https://trac.osgeo.org/grass/changeset/68131, see https://trac.osgeo.org/grass/ticket/2456)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68313 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 년 전
부모
커밋
207025b5dc
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      lib/proj/convert.c

+ 3 - 0
lib/proj/convert.c

@@ -141,9 +141,12 @@ OGRSpatialReferenceH GPJ_grass_to_osr(const struct Key_Value * proj_info,
 	return NULL;
     }
     G_free(proj4mod);
+
+    /* this messes up PROJCS versus GEOGCS!
     sysname = G_find_key_value("name", proj_info);
     if (sysname)
 	OSRSetProjCS(hSRS, sysname);
+    */
 
     if ((errcode = OSRExportToWkt(hSRS, &wkt)) != OGRERR_NONE) {
 	G_warning(_("OGR can't get WKT-style parameter string "