#include "gdal_alg.h"
#include "cpl_minixml.h"
Go to the source code of this file.
Classes | |
struct | GDALWarpOptions |
class | GDALWarpKernel |
class | GDALWarpOperation |
Typedefs | |
typedef int(* | GDALMaskFunc )(void *pMaskFuncArg, int nBandCount, GDALDataType eType, int nXOff, int nYOff, int nXSize, int nYSize, GByte **papabyImageData, int bMaskIsFloat, void *pMask) |
typedef void * | GDALWarpOperationH |
Enumerations | |
enum | GDALResampleAlg { GRA_NearestNeighbour = 0, GRA_Bilinear = 1, GRA_Cubic = 2, GRA_CubicSpline = 3 } |
Functions | |
CPLErr | GDALWarpNoDataMasker (void *pMaskFuncArg, int nBandCount, GDALDataType eType, int nXOff, int nYOff, int nXSize, int nYSize, GByte **papabyImageData, int bMaskIsFloat, void *pValidityMask) |
CPLErr | GDALWarpDstAlphaMasker (void *pMaskFuncArg, int nBandCount, GDALDataType eType, int nXOff, int nYOff, int nXSize, int nYSize, GByte **, int bMaskIsFloat, void *pValidityMask) |
CPLErr | GDALWarpSrcAlphaMasker (void *pMaskFuncArg, int nBandCount, GDALDataType eType, int nXOff, int nYOff, int nXSize, int nYSize, GByte **, int bMaskIsFloat, void *pValidityMask) |
GDALWarpOptions * | GDALCreateWarpOptions () |
void | GDALDestroyWarpOptions (GDALWarpOptions *) |
GDALWarpOptions * | GDALCloneWarpOptions (const GDALWarpOptions *) |
CPLXMLNode * | GDALSerializeWarpOptions (const GDALWarpOptions *) |
GDALWarpOptions * | GDALDeserializeWarpOptions (CPLXMLNode *) |
CPLErr | GDALReprojectImage (GDALDatasetH hSrcDS, const char *pszSrcWKT, GDALDatasetH hDstDS, const char *pszDstWKT, GDALResampleAlg eResampleAlg, double dfWarpMemoryLimit, double dfMaxError, GDALProgressFunc pfnProgress, void *pProgressArg, GDALWarpOptions *psOptions) |
CPLErr | GDALCreateAndReprojectImage (GDALDatasetH hSrcDS, const char *pszSrcWKT, const char *pszDstFilename, const char *pszDstWKT, GDALDriverH hDstDriver, char **papszCreateOptions, GDALResampleAlg eResampleAlg, double dfWarpMemoryLimit, double dfMaxError, GDALProgressFunc pfnProgress, void *pProgressArg, GDALWarpOptions *psOptions) |
GDALDatasetH | GDALAutoCreateWarpedVRT (GDALDatasetH hSrcDS, const char *pszSrcWKT, const char *pszDstWKT, GDALResampleAlg eResampleAlg, double dfMaxError, const GDALWarpOptions *psOptions) |
GDALDatasetH | GDALCreateWarpedVRT (GDALDatasetH hSrcDS, int nPixels, int nLines, double *padfGeoTransform, GDALWarpOptions *psOptions) |
CPLErr | GDALInitializeWarpedVRT (GDALDatasetH hDS, GDALWarpOptions *psWO) |
GDALWarpOperationH | GDALCreateWarpOperation (const GDALWarpOptions *) |
void | GDALDestroyWarpOperation (GDALWarpOperationH) |
CPLErr | GDALChunkAndWarpImage (GDALWarpOperationH, int, int, int, int) |
CPLErr | GDALChunkAndWarpMulti (GDALWarpOperationH, int, int, int, int) |
CPLErr | GDALWarpRegion (GDALWarpOperationH, int, int, int, int, int, int, int, int) |
CPLErr | GDALWarpRegionToBuffer (GDALWarpOperationH, int, int, int, int, void *, GDALDataType, int, int, int, int) |
|
Warp Resampling Algorithm |
|
Create virtual warped dataset automatically. This function will create a warped virtual file representing the input image warped into the target coordinate system. A GenImgProj transformation is created to accomplish any required GCP/Geotransform warp and reprojection to the target coordinate system. The output virtual dataset will be "northup" in the target coordinate system. The GDALSuggestedWarpOutput() function is used to determine the bounds and resolution of the output virtual file which should be large enough to include all the input image Note that the constructed GDALDatasetH will acquire one or more references to the passed in hSrcDS. Reference counting semantics on the source dataset should be honoured. That is, don't just GDALClose() it unless it was opened with GDALOpenShared(). The returned dataset will have no associated filename for itself. If you want to write the virtual dataset description to a file, use the GDALSetDescription() function (or SetDescription() method) on the dataset to assign a filename before it is closed.
|
|
|
|
|
|
Create virtual warped dataset. This function will create a warped virtual file representing the input image warped based on a provided transformation. Output bounds and resolution are provided explicitly. Note that the constructed GDALDatasetH will acquire one or more references to the passed in hSrcDS. Reference counting semantics on the source dataset should be honoured. That is, don't just GDALClose() it unless it was opened with GDALOpenShared().
|
|
|
|
|
|
Set warp info on virtual warped dataset. Initializes all the warping information for a virtual warped dataset. This method is the same as the C++ method VRTWarpedDataset::Initialize().
|
|
Reproject image. This is a convenience function utilizing the GDALWarpOperation class to reproject an image from a source to a destination. In particular, this function takes care of establishing the transformation function to implement the reprojection, and will default a variety of other warp options. By default all bands are transferred, with no masking or nodata values in effect. No metadata, projection info, or color tables are transferred to the output file.
|
|
|
|
|