静态设置:我的电脑|属性|高级|环境变量|新建|GDAL_DATA="$GDAL\data" 运行时设置:再调用GDAL库开始处加GDALSetConfigOption( "GDAL_DATA", "d:\\gdal\\data" );
//设置环境变量 //GDALSetConfigOption( "GDAL_DATA", "d:\\gdal\\data" ); CPLSetConfigOption( "GDAL_DATA", "d:\\gdal\\data" );
//设置环境变量 //GDALSetConfigOption( "GDAL_DATA", "d:\\gdal\\data" );OGRErr err = oSourceSRS.importFromEPSG( nCS1 );oTargetSRS.importFromEPSG( nCS2 );char *pszWKT = NULL;//测试 oSourceSRS.exportToWkt(&pszWKT);AfxMessageBox(CString(pszWKT));//定义转化 poCT = OGRCreate...
静态设置:我的电脑|属性|高级|环境变量|新建|GDAL_DATA="$GDAL\data" 运行时设置:再调用GDAL库开始处加GDALSetConfigOption( "GDAL_DATA", "d:\\gdal\\data" );