Keymap SDK Changes Log

Changes between SDK version 1.1 and 1.0/1.01

Keymap SDK version 1.1 introduces some changes aimed to deliver higher level of software compatibility and portability. Change does not affect the SDK WTL UI classes.

Changes list:

With above changes, from version 1.1 you can build WTL or MFC applications with same Keymap SDK libraries. Furthermore, any GUI library can be used with the SDK without re-build the SDK.

 

Migration note:

//in SDK v.1.01 pMap->m_strGPSInfo is CString, now replaced by pMap->m_szGPSInfo (TCHAR[512])
//pMap->m_strGPSInfo+= _T("-WGS84 convert failed");
_tcscat(pMap->m_szGPSInfo, _T("-WGS84 convert failed"));


//pMap->m_strGPSInfo+= _T("-outside"); _tcscat(pMap->m_szGPSInfo, _T("-outside"));
//Change GetCPoint to GetPOINT and change return type //CPoint ptScr1 = pt.GetCPoint(pMap); //CRect recScr = pMap->GetRecClient(); CPoint ptScr1(pt.GetPOINT(pMap)); CRect recScr(pMap->GetRecClient());
//CMainFrame constructor
OGR2Mpl=(MplImportResult(*)(const char*, const char*, int, bool (*_callbackF)(float)))GetProcAddress(m_hImportDll,"OGR2Mpl"); 
Mpl2Mpl=(MplImportResult(*)(const TCHAR*, const TCHAR*, int, bool (*_callbackF)(float)))GetProcAddress(m_hImportDll,"Mpl2Mpl"); 
VacuumKdtree=(MplImportResult(*)(const TCHAR*, int, bool (*_callbackF)(float)))GetProcAddress(m_hImportDll,"VacuumKdtree"); 
 
//CMainFrame::OnFileImport
MplImportResult iResult;
#ifdef UNICODE
	iResult = OGR2Mpl(strFileImport, strFile, 50000, NULL); 
#else
	iResult = OGR2Mpl(dlgImport.m_szFileName,dlgExport.m_szFileName, 50000, NULL);
#endif//UNICODE

To learn about using data import callback function, reference Using callback functions article.

Changes between SDK version 1.2 and 1.1

Keymap SDK version 1.2 introduces map layer transparency.