|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD> ToGoogleKML.h
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2005-12-07
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "MessageInfo.h"
|
|
|
|
|
|
|
|
|
|
|
|
class CXy;
|
|
|
|
|
|
class COne;
|
|
|
|
|
|
class CHowToViewPoint;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NFormatWriter
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class AFX_EXT_CLASS CToGoogleKML
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CToGoogleKML(void);
|
|
|
|
|
|
virtual ~CToGoogleKML(void);
|
|
|
|
|
|
|
|
|
|
|
|
void SetMessageFile(LPCTSTR lpszFileName);
|
|
|
|
|
|
void SetProgress(CProgressCtrl* pProgress);
|
|
|
|
|
|
void SetInfoWnd(CWnd* pWnd);
|
|
|
|
|
|
|
|
|
|
|
|
int Play(CXy* pxy, LPCTSTR lpszOutput, LPCTSTR lpszLayerName);
|
|
|
|
|
|
int Play(CXy* pxy, CFile* pFileWrite, LPCTSTR lpszLayerName);
|
|
|
|
|
|
|
|
|
|
|
|
int ChangeXY2LB(CXy* pxy); //ֱ<>ӽ<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD><CEAA>γ<EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ͶӰ<CDB6><D3B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
void ChangeToKML(CXy* pxy, LPCTSTR lpszLayerName);
|
|
|
|
|
|
|
|
|
|
|
|
void PlayPoint(CXy* pxy, CPositionList& list, int nType, int& count);
|
|
|
|
|
|
void PlayCurve(CXy* pxy, CPositionList& list, int& count);
|
|
|
|
|
|
|
|
|
|
|
|
void WritePointHead(CString lpszLayer, COLORREF color, CHowToViewPoint* php=NULL);
|
|
|
|
|
|
void PlayPoint(COne* pOne);
|
|
|
|
|
|
|
|
|
|
|
|
void WriteTextHead(CString lpszLayer, COLORREF color);
|
|
|
|
|
|
void PlayText(COne* pOne);
|
|
|
|
|
|
|
|
|
|
|
|
void PlayCurve(COne* pOne);
|
|
|
|
|
|
void PlayCurveSolidHead(CString lpszLayer, COLORREF color, int nSolid);
|
|
|
|
|
|
|
|
|
|
|
|
void PlayImage(CXy* pxy, CPositionList& list, int& count);
|
|
|
|
|
|
void PlayImage(COne* pOne);
|
|
|
|
|
|
|
|
|
|
|
|
int FindMessageInfo(CString strLayerName, CString strElementName);
|
|
|
|
|
|
void WriteMessageInfo(CString strLayerName, CString strElementName);
|
|
|
|
|
|
|
|
|
|
|
|
void WriteString(LPCTSTR lpString);
|
|
|
|
|
|
|
|
|
|
|
|
CString Convert(CString str, int sourceCodepage, int targetCodepage);
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
double m_dScale;
|
|
|
|
|
|
|
|
|
|
|
|
CProgressCtrl* m_pProgress;
|
|
|
|
|
|
CFile* m_pFile;
|
|
|
|
|
|
BYTE* m_pTargetData;
|
|
|
|
|
|
wchar_t* m_pUnicodeData;
|
|
|
|
|
|
|
|
|
|
|
|
int unit = 0;
|
|
|
|
|
|
int m_nUnicodeNum;
|
|
|
|
|
|
int m_nTargetNum;
|
|
|
|
|
|
|
|
|
|
|
|
BOOL m_bCurve;
|
|
|
|
|
|
BOOL m_bPoint;
|
|
|
|
|
|
BOOL m_bText;
|
|
|
|
|
|
BOOL m_bImage;
|
|
|
|
|
|
BOOL m_bWithSubLayer;
|
|
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD>ӽṹ<D3BD><E1B9B9>
|
|
|
|
|
|
CMessageInfo *m_messageInfo;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
};//namespace
|
|
|
|
|
|
using namespace NFormatWriter;
|