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.
38 lines
908 B
C++
38 lines
908 B
C++
#ifndef GEOSPATIALANALYSIS_H
|
|
#define GEOSPATIALANALYSIS_H
|
|
/*
|
|
* @cbwu
|
|
* @brief 空间分析类,实现各种空间分析算法
|
|
*/
|
|
|
|
#include "qmapcontrol.h"
|
|
#include "Engine/UGDataset.h"
|
|
#include "GridAnalyst/UG3DAnalyst.h"
|
|
|
|
#include <QVector>
|
|
|
|
using namespace UGC;
|
|
|
|
//MSVC编译器界面显示乱码问题
|
|
#if _MSC_VER >= 1600
|
|
#pragma execution_character_set("utf-8")
|
|
#endif
|
|
|
|
class GeoSpatialAnalysis
|
|
{
|
|
public:
|
|
GeoSpatialAnalysis();
|
|
|
|
//两点间的可视性
|
|
UG3DAnalyst::SingleResult* DoublePointVisibility(QMapControl* pMapControl,UGPoint2D pntView, UGPoint2D pntObject,double relativeAltitude=0,int tolerance=0);
|
|
|
|
//剖面分析
|
|
bool SurfaceProfile_Parallel(const UGDatasetRasterPtr& pInputRaster,UGGeoLine* pCrossLine,QVector<double>& geoValue,QVector<QPointF>& geoPt);
|
|
|
|
private:
|
|
//3D分析分析实例对象
|
|
UG3DAnalyst geoAnalystMag;
|
|
};
|
|
|
|
#endif // GEOSPATIALANALYSIS_H
|