16 #ifndef QGSGDALUTILS_H
17 #define QGSGDALUTILS_H
21 #include "qgis_core.h"
43 static bool supportsRasterCreate( GDALDriverH driver );
69 static bool resampleSingleBandRaster(
GDALDatasetH hSrcDS,
GDALDatasetH hDstDS, GDALResampleAlg resampleAlg,
const char *pszCoordinateOperation );
75 static QImage resampleImage(
const QImage &image, QSize outputSize, GDALRIOResampleAlg resampleAlg );
81 static QString helpCreationOptionsFormat(
const QString &format );
87 static QString validateCreationOptionsFormat(
const QStringList &createOptions,
const QString &format );
93 static char **papszFromStringList(
const QStringList &list );
114 const char *pszSrcWKT,
115 const char *pszDstWKT,
116 GDALResampleAlg eResampleAlg,
118 const GDALWarpOptions *psOptionsIn );
128 static void *rpcAwareCreateTransformer(
GDALDatasetH hSrcDS,
GDALDatasetH hDstDS =
nullptr,
char **papszOptions =
nullptr );
130 #ifndef QT_NO_NETWORKPROXY
132 static void setupProxy();
135 friend class TestQgsGdalUtils;
This class represents a coordinate reference system (CRS).
Utilities for working with GDAL.
A rectangle specified with double values.
std::unique_ptr< std::remove_pointer< GDALDatasetH >::type, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.
const QgsCoordinateReferenceSystem & crs