36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
|
#pragma once
|
|||
|
#include "gdal_priv.h"
|
|||
|
#include "ogrsf_frmts.h" //for ogr
|
|||
|
#include "gdal_alg.h" //for GDALPolygonize
|
|||
|
#include "cpl_conv.h" //for CPLMalloc()
|
|||
|
#include "QtGDALProcessBar.h"
|
|||
|
#include <QDebug>
|
|||
|
/**
|
|||
|
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*/
|
|||
|
#ifndef STD_API
|
|||
|
#define STD_API __stdcall
|
|||
|
#endif
|
|||
|
/**
|
|||
|
* \brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>GDAL<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
|
|||
|
*
|
|||
|
* <EFBFBD>ú<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD>GDAL<EFBFBD>㷨<EFBFBD>еĽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CProcessBase<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
|||
|
*
|
|||
|
* @param dfComplete <EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡֵΪ 0.0 <EFBFBD><EFBFBD> 1.0 ֮<EFBFBD><EFBFBD>
|
|||
|
* @param pszMessage <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|||
|
* @param pProgressArg CProcessBase<EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|||
|
*
|
|||
|
* @return <EFBFBD><EFBFBD><EFBFBD><EFBFBD>TRUE<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊȡ<EFBFBD><EFBFBD>
|
|||
|
*/
|
|||
|
int STD_API ALGTermProgress(double dfComplete, const char* pszMessage, void* pProgressArg);
|
|||
|
|
|||
|
class img2shp
|
|||
|
{
|
|||
|
public:
|
|||
|
int ImagePolygonize(const char* pszSrcFile, const char* pszDstFile, const char* pszFormat, int BandNum, QtGDALProcessBar* probar, QProgressBar* progressBar);
|
|||
|
bool createChineseStringProperty(OGRLayer* poLayer, const char* filterFieldName, const char* createFieldName, vector<string> nameVal, float min, QProgressBar* progressBar);
|
|||
|
protected:
|
|||
|
private:
|
|||
|
};
|
|||
|
|