資源簡介
本程序輸入數據要求保存在記事本文件中。首先將控制點數據保存在一個記事本文件中。在此文件中每行對應一個控制點的信息,按先新坐標系X、Y、Z(以北京1954坐標系為例)再舊坐標系X、Y、Z(以WGS-84為例),每個數據用空格分開。然后將要輸入的待轉換點坐標寫入另一個記事本文件,本程序可同時計算多個待轉換點數據,在記事本中每行保存一個待轉換點數據,按X、Y、Z順序保存。
運行程序時,首先單擊“讀入公共點數據” 按鈕,首先在彈出的對話框中輸入你所擁有的控制點數,然后選擇保存好的控制點數據,“打開”即可。點擊“計算轉換參量”按鈕,程序即可計算出轉換參量。點擊“讀入待轉換點”按鈕,首先在彈出的對話框中輸入你所要轉換的點數,然后選擇保存好的轉換點數據,“打開”即可。在每個步驟中用戶都可以實時的在列表控件中查看讀入的數據和計算得到的結果,以便檢查核對。最后點擊“保存結果”按鈕,就可以將得到的結果保存在一個記事本文件中。

代碼片段和文件信息
//?CooTran.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CooTran.h“
#include?“CooTranDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCooTranApp
BEGIN_MESSAGE_MAP(CCooTranApp?CWinApp)
//{{AFX_MSG_MAP(CCooTranApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCooTranApp?construction
CCooTranApp::CCooTranApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCooTranApp?object
CCooTranApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCooTranApp?initialization
BOOL?CCooTranApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CCooTranDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????22448??2008-10-27?10:35??源程序\CooTran.aps
?????文件???????2043??2008-10-27?11:20??源程序\CooTran.clw
?????文件???????2077??2007-03-18?18:15??源程序\CooTran.cpp
?????文件???????4384??2008-05-04?21:35??源程序\CooTran.dsp
?????文件????????537??2007-03-18?18:15??源程序\CooTran.dsw
?????文件???????1335??2007-03-18?18:15??源程序\CooTran.h
?????文件?????181248??2008-10-27?11:20??源程序\CooTran.ncb
?????文件??????50688??2008-10-27?11:20??源程序\CooTran.opt
?????文件???????1952??2008-10-27?10:35??源程序\CooTran.plg
?????文件???????6855??2008-05-04?21:20??源程序\CooTran.rc
?????文件??????13215??2008-10-27?10:35??源程序\CooTranDlg.cpp
?????文件???????1719??2008-05-16?16:10??源程序\CooTranDlg.h
?????文件?????118871??2008-10-27?10:35??源程序\Debug\CooTran.exe
?????文件?????226280??2008-10-27?10:35??源程序\Debug\CooTran.ilk
?????文件??????14644??2008-10-27?10:35??源程序\Debug\CooTran.obj
?????文件????5495116??2008-10-27?10:35??源程序\Debug\CooTran.pch
?????文件?????295936??2008-10-27?10:35??源程序\Debug\CooTran.pdb
?????文件???????3400??2008-10-27?10:35??源程序\Debug\CooTran.res
?????文件??????56007??2008-10-27?10:35??源程序\Debug\CooTranDlg.obj
?????文件??????10492??2008-10-27?10:35??源程序\Debug\PointNum.obj
?????文件?????105779??2008-10-27?10:35??源程序\Debug\StdAfx.obj
?????文件?????214016??2008-10-27?10:48??源程序\Debug\vc60.idb
?????文件?????380928??2008-10-27?10:35??源程序\Debug\vc60.pdb
?????文件?????245803??2007-03-16?17:19??源程序\Matrix.dll
?????文件????????550??2007-03-16?17:18??源程序\Matrix.h
?????文件???????2626??2007-03-16?17:19??源程序\Matrix.lib
?????文件????????994??2007-03-18?19:08??源程序\PointNum.cpp
?????文件???????1206??2007-03-18?18:40??源程序\PointNum.h
?????文件???????3597??2007-03-18?18:15??源程序\ReadMe.txt
?????文件????3408896??2008-10-27?10:35??源程序\Release\CooTran.bsc
............此處省略26個文件信息
- 上一篇:stm32 攝像頭云臺
- 下一篇:數字通信 第四版 英文版 proakis
評論
共有 條評論