📄 gdal.h
字号:
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterCategoryNames( GDALRasterBandH, char ** );double CPL_DLL CPL_STDCALL GDALGetRasterMinimum( GDALRasterBandH, int *pbSuccess );double CPL_DLL CPL_STDCALL GDALGetRasterMaximum( GDALRasterBandH, int *pbSuccess );CPLErr CPL_DLL CPL_STDCALL GDALGetRasterStatistics( GDALRasterBandH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev );CPLErr CPL_DLL CPL_STDCALL GDALComputeRasterStatistics( GDALRasterBandH, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData );CPLErr CPL_DLL CPL_STDCALL GDALSetRasterStatistics( GDALRasterBandH hBand, double dfMin, double dfMax, double dfMean, double dfStdDev );const char CPL_DLL * CPL_STDCALL GDALGetRasterUnitType( GDALRasterBandH );double CPL_DLL CPL_STDCALL GDALGetRasterOffset( GDALRasterBandH, int *pbSuccess );CPLErr CPL_DLL CPL_STDCALL GDALSetRasterOffset( GDALRasterBandH hBand, double dfNewOffset);double CPL_DLL CPL_STDCALL GDALGetRasterScale( GDALRasterBandH, int *pbSuccess );CPLErr CPL_DLL CPL_STDCALL GDALSetRasterScale( GDALRasterBandH hBand, double dfNewOffset );void CPL_DLL CPL_STDCALL GDALComputeRasterMinMax( GDALRasterBandH hBand, int bApproxOK, double adfMinMax[2] );CPLErr CPL_DLL CPL_STDCALL GDALFlushRasterCache( GDALRasterBandH hBand );CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void * pProgressData );CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand, double *pdfMin, double *pdfMax, int *pnBuckets, int **ppanHistogram, int bForce, GDALProgressFunc pfnProgress, void * pProgressData );CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram );int CPL_DLL CPL_STDCALLGDALGetRandomRasterSample( GDALRasterBandH, int, float * );GDALRasterBandH CPL_DLL CPL_STDCALLGDALGetRasterSampleOverview( GDALRasterBandH, int );CPLErr CPL_DLL CPL_STDCALL GDALFillRaster( GDALRasterBandH hBand, double dfRealValue, double dfImaginaryValue );CPLErr CPL_DLL CPL_STDCALLGDALComputeBandStats( GDALRasterBandH hBand, int nSampleStep, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData );CPLErr CPL_DLL GDALOverviewMagnitudeCorrection( GDALRasterBandH hBaseBand, int nOverviewCount, GDALRasterBandH *pahOverviews, GDALProgressFunc pfnProgress, void *pProgressData );GDALRasterAttributeTableH CPL_DLL CPL_STDCALL GDALGetDefaultRAT( GDALRasterBandH hBand );CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultRAT( GDALRasterBandH, GDALRasterAttributeTableH );CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFunc( const char *pszName, GDALDerivedPixelFunc pfnPixelFunc );/* -------------------------------------------------------------------- *//* Helper functions. *//* -------------------------------------------------------------------- */int CPL_DLL CPL_STDCALL GDALGeneralCmdLineProcessor( int nArgc, char ***ppapszArgv, int nOptions );void CPL_DLL CPL_STDCALL GDALSwapWords( void *pData, int nWordSize, int nWordCount, int nWordSkip );void CPL_DLL CPL_STDCALL GDALCopyWords( void * pSrcData, GDALDataType eSrcType, int nSrcPixelOffset, void * pDstData, GDALDataType eDstType, int nDstPixelOffset, int nWordCount );int CPL_DLL CPL_STDCALL GDALReadWorldFile( const char *pszBaseFilename, const char *pszExtension, double * padfGeoTransform );int CPL_DLL CPL_STDCALL GDALWriteWorldFile( const char *pszBaseFilename, const char *pszExtension, double * padfGeoTransform );int CPL_DLL CPL_STDCALL GDALReadTabFile( const char *pszBaseFilename, double *padfGeoTransform, char **ppszWKT, int *pnGCPCount, GDAL_GCP **ppasGCPs );const char CPL_DLL * CPL_STDCALL GDALDecToDMS( double, const char *, int );double CPL_DLL CPL_STDCALL GDALPackedDMSToDec( double );double CPL_DLL CPL_STDCALL GDALDecToPackedDMS( double );const char CPL_DLL * CPL_STDCALL GDALVersionInfo( const char * );typedef struct { double dfLINE_OFF; double dfSAMP_OFF; double dfLAT_OFF; double dfLONG_OFF; double dfHEIGHT_OFF; double dfLINE_SCALE; double dfSAMP_SCALE; double dfLAT_SCALE; double dfLONG_SCALE; double dfHEIGHT_SCALE; double adfLINE_NUM_COEFF[20]; double adfLINE_DEN_COEFF[20]; double adfSAMP_NUM_COEFF[20]; double adfSAMP_DEN_COEFF[20]; double dfMIN_LONG; double dfMIN_LAT; double dfMAX_LONG; double dfMAX_LAT;} GDALRPCInfo;int CPL_DLL CPL_STDCALL GDALExtractRPCInfo( char **, GDALRPCInfo * );/* ==================================================================== *//* Color tables. *//* ==================================================================== *//** Color tuple */typedef struct{ /*! gray, red, cyan or hue */ short c1; /*! green, magenta, or lightness */ short c2; /*! blue, yellow, or saturation */ short c3; /*! alpha or blackband */ short c4; } GDALColorEntry;GDALColorTableH CPL_DLL CPL_STDCALL GDALCreateColorTable( GDALPaletteInterp );void CPL_DLL CPL_STDCALL GDALDestroyColorTable( GDALColorTableH );GDALColorTableH CPL_DLL CPL_STDCALL GDALCloneColorTable( GDALColorTableH );GDALPaletteInterp CPL_DLL CPL_STDCALL GDALGetPaletteInterpretation( GDALColorTableH );int CPL_DLL CPL_STDCALL GDALGetColorEntryCount( GDALColorTableH );const GDALColorEntry CPL_DLL * CPL_STDCALL GDALGetColorEntry( GDALColorTableH, int );int CPL_DLL CPL_STDCALL GDALGetColorEntryAsRGB( GDALColorTableH, int, GDALColorEntry *);void CPL_DLL CPL_STDCALL GDALSetColorEntry( GDALColorTableH, int, const GDALColorEntry * );/* ==================================================================== *//* Raster Attribute Table *//* ==================================================================== */typedef enum { /*! Integer field */ GFT_Integer , /*! Floating point (double) field */ GFT_Real, /*! String field */ GFT_String} GDALRATFieldType;typedef enum { /*! General purpose field. */ GFU_Generic = 0, /*! Histogram pixel count */ GFU_PixelCount = 1, /*! Class name */ GFU_Name = 2, /*! Class range minimum */ GFU_Min = 3, /*! Class range maximum */ GFU_Max = 4, /*! Class value (min=max) */ GFU_MinMax = 5, /*! Red class color (0-255) */ GFU_Red = 6, /*! Green class color (0-255) */ GFU_Green = 7, /*! Blue class color (0-255) */ GFU_Blue = 8, /*! Alpha (0=transparent,255=opaque)*/ GFU_Alpha = 9, /*! Color Range Red Minimum */ GFU_RedMin = 10, /*! Color Range Green Minimum */ GFU_GreenMin = 11, /*! Color Range Blue Minimum */ GFU_BlueMin = 12, /*! Color Range Alpha Minimum */ GFU_AlphaMin = 13, /*! Color Range Red Maximum */ GFU_RedMax = 14, /*! Color Range Green Maximum */ GFU_GreenMax = 15, /*! Color Range Blue Maximum */ GFU_BlueMax = 16, /*! Color Range Alpha Maximum */ GFU_AlphaMax = 17, /*! Maximum GFU value */ GFU_MaxCount} GDALRATFieldUsage;GDALRasterAttributeTableH CPL_DLL CPL_STDCALL GDALCreateRasterAttributeTable(void);void CPL_DLL CPL_STDCALL GDALDestroyRasterAttributeTable( GDALRasterAttributeTableH );int CPL_DLL CPL_STDCALL GDALRATGetColumnCount( GDALRasterAttributeTableH );const char CPL_DLL * CPL_STDCALL GDALRATGetNameOfCol( GDALRasterAttributeTableH, int );GDALRATFieldUsage CPL_DLL CPL_STDCALL GDALRATGetUsageOfCol( GDALRasterAttributeTableH, int );GDALRATFieldType CPL_DLL CPL_STDCALL GDALRATGetTypeOfCol( GDALRasterAttributeTableH, int );int CPL_DLL CPL_STDCALL GDALRATGetColOfUsage( GDALRasterAttributeTableH, GDALRATFieldUsage );int CPL_DLL CPL_STDCALL GDALRATGetRowCount( GDALRasterAttributeTableH );const char CPL_DLL * CPL_STDCALL GDALRATGetValueAsString( GDALRasterAttributeTableH, int ,int);int CPL_DLL CPL_STDCALL GDALRATGetValueAsInt( GDALRasterAttributeTableH, int ,int);double CPL_DLL CPL_STDCALL GDALRATGetValueAsDouble( GDALRasterAttributeTableH, int ,int);void CPL_DLL CPL_STDCALL GDALRATSetValueAsString( GDALRasterAttributeTableH, int, int, const char * );void CPL_DLL CPL_STDCALL GDALRATSetValueAsInt( GDALRasterAttributeTableH, int, int, int );void CPL_DLL CPL_STDCALL GDALRATSetValueAsDouble( GDALRasterAttributeTableH, int, int, double );void CPL_DLL CPL_STDCALL GDALRATSetRowCount( GDALRasterAttributeTableH, int );CPLErr CPL_DLL CPL_STDCALL GDALRATCreateColumn( GDALRasterAttributeTableH, const char *, GDALRATFieldType, GDALRATFieldUsage );CPLErr CPL_DLL CPL_STDCALL GDALRATSetLinearBinning( GDALRasterAttributeTableH, double, double );int CPL_DLL CPL_STDCALL GDALRATGetLinearBinning( GDALRasterAttributeTableH, double *, double * );CPLErr CPL_DLL CPL_STDCALL GDALRATInitializeFromColorTable( GDALRasterAttributeTableH, GDALColorTableH );GDALColorTableH CPL_DLL CPL_STDCALL GDALRATTranslateToColorTable( int nEntryCount );void CPL_DLL CPL_STDCALL GDALRATDumpReadable( GDALRasterAttributeTableH, FILE * );GDALRasterAttributeTableH CPL_DLL CPL_STDCALL GDALRATClone( GDALRasterAttributeTableH );int CPL_DLL CPL_STDCALL GDALRATGetRowOfValue( GDALRasterAttributeTableH , double );/* ==================================================================== *//* GDAL Cache Management *//* ==================================================================== */void CPL_DLL CPL_STDCALL GDALSetCacheMax( int nBytes );int CPL_DLL CPL_STDCALL GDALGetCacheMax(void);int CPL_DLL CPL_STDCALL GDALGetCacheUsed(void);int CPL_DLL CPL_STDCALL GDALFlushCacheBlock(void);CPL_C_END#endif /* ndef GDAL_H_INCLUDED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -