QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
Utilities for working with GDAL. More...
#include <qgsgdalutils.h>
Static Public Member Functions | |
static gdal::dataset_unique_ptr | createSingleBandMemoryDataset (GDALDataType dataType, QgsRectangle extent, int width, int height, const QgsCoordinateReferenceSystem &crs) |
Creates a new single band memory dataset with given parameters. More... | |
static gdal::dataset_unique_ptr | createSingleBandTiffDataset (QString filename, GDALDataType dataType, QgsRectangle extent, int width, int height, const QgsCoordinateReferenceSystem &crs) |
Creates a new single band TIFF dataset with given parameters. More... | |
static QString | helpCreationOptionsFormat (QString format) |
Gets creation options metadata for a given format. More... | |
static char ** | papszFromStringList (const QStringList &list) |
Helper function. More... | |
static void | resampleSingleBandRaster (GDALDatasetH hSrcDS, GDALDatasetH hDstDS, GDALResampleAlg resampleAlg) |
Resamples a single band raster to the destination dataset with different resolution (and possibly with different CRS). More... | |
static bool | supportsRasterCreate (GDALDriverH driver) |
Reads whether a driver supports GDALCreate() for raster purposes. More... | |
static QString | validateCreationOptionsFormat (const QStringList &createOptions, QString format) |
Validates creation options for a given format, regardless of layer. More... | |
Utilities for working with GDAL.
Definition at line 34 of file qgsgdalutils.h.
|
static |
Creates a new single band memory dataset with given parameters.
Definition at line 37 of file qgsgdalutils.cpp.
|
static |
Creates a new single band TIFF dataset with given parameters.
Definition at line 62 of file qgsgdalutils.cpp.
|
static |
Gets creation options metadata for a given format.
Definition at line 123 of file qgsgdalutils.cpp.
|
static |
|
static |
Resamples a single band raster to the destination dataset with different resolution (and possibly with different CRS).
Ideally the source dataset should cover the whole area or the destination dataset.
Definition at line 93 of file qgsgdalutils.cpp.
|
static |
Reads whether a driver supports GDALCreate() for raster purposes.
driver | GDAL driver |
true
if a driver supports GDALCreate() for raster purposes. Definition at line 24 of file qgsgdalutils.cpp.
|
static |
Validates creation options for a given format, regardless of layer.
Definition at line 163 of file qgsgdalutils.cpp.