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.
37 lines
1008 B
C++
37 lines
1008 B
C++
#ifndef GEOFILEPARSER_H
|
|
#define GEOFILEPARSER_H
|
|
/*
|
|
*地理文件解析类
|
|
*/
|
|
|
|
#include <QString>
|
|
#include "Engine/UGDataSource.h"
|
|
#include "FileParser/UGFileParserConfigParams.h"
|
|
|
|
using namespace UGC;
|
|
|
|
class GeoFileParser
|
|
{
|
|
// Q_OBJECT
|
|
public:
|
|
GeoFileParser();
|
|
|
|
//导入tiff文件
|
|
bool importTiffData(UGDataSource* pDataSource,UGString datasetName,QString importPath,
|
|
bool ifBuildPyramid=false,UGint importModel = UGImportParams::ModeIMG,
|
|
UGDataCodec::CodecType encType = UGDataCodec::CodecType::encPNG);
|
|
|
|
//导入KML
|
|
bool importKMLData(UGDataSource* pDataSource,UGString datasetName,QString importPath);
|
|
|
|
//导出KML文件
|
|
bool exportKMLData(UGDataSource* pDataSource,QString datasetName,QString savePath,QString strRecordFilter = "");
|
|
|
|
//导入模型
|
|
bool importModelData(UGDataSource* pDataSource,UGString datasetName,QString importPath);
|
|
|
|
// void loadModelData(QString importPath);
|
|
};
|
|
|
|
#endif // GEOFILEPARSER_H
|