You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
// ConversionParameter.h: interface for the CConversionParameter class.
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//主要功能:
|
|
// 投影转换
|
|
//
|
|
//程序编写: 2008-11-09
|
|
//
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#if !defined(AFX_CONVERSIONPARAMETER_H__964F4E1B_EE2C_4AD5_A85B_8EB37DA1434E__INCLUDED_)
|
|
#define AFX_CONVERSIONPARAMETER_H__964F4E1B_EE2C_4AD5_A85B_8EB37DA1434E__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#define _Geodetic_Rectangular_THREE_PARAMETER 1 //三参数法
|
|
#define _Geodetic_Rectangular_BURSA_SEVEN_PARAMETER 2 //布尔莎七参数法
|
|
#define _Geodetic_Coordinate_THREE_PARAMETER 3
|
|
#define _Geodetic_Coordinate_SEVEN_PARAMETER 4
|
|
#define _Geodetic_Coordinate_Generized_differential 5 //广义大地坐标微分公式
|
|
#define _Geodetic_Coordinate_Approximation_differential 6 //球近似大地微分公式
|
|
|
|
class AFX_EXT_CLASS CConversionParameter
|
|
{
|
|
public:
|
|
CConversionParameter();
|
|
virtual ~CConversionParameter();
|
|
|
|
CString GetParameter();
|
|
int Initial(CString lpFileName,CString lpAppName,CString other);
|
|
int Initial(int nType, CString lpFileName,CString lpAppName,CString other);
|
|
|
|
int type; //参数类型
|
|
|
|
//空间大地直角坐标系换算参数(7参数)
|
|
double dx,dy,dz; //平移参数 //(3参数)
|
|
double rx,ry,rz; //旋转参数
|
|
double scale; //比例因子
|
|
|
|
CConversionParameter& operator =(CConversionParameter &cp);
|
|
};
|
|
|
|
#endif // !defined(AFX_CONVERSIONPARAMETER_H__964F4E1B_EE2C_4AD5_A85B_8EB37DA1434E__INCLUDED_)
|