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 );
123 const char *pszSrcWKT,
124 const char *pszDstWKT,
125 GDALResampleAlg eResampleAlg,
127 const GDALWarpOptions *psOptionsIn );
137 static void *rpcAwareCreateTransformer(
GDALDatasetH hSrcDS,
GDALDatasetH hDstDS =
nullptr,
char **papszOptions =
nullptr );
139 #ifndef QT_NO_NETWORKPROXY
140 static void setupProxy();
158 static bool pathIsCheapToOpen(
const QString &path,
int smallFileSizeLimit = 50000 );
166 static QStringList multiLayerFileExtensions();
174 static bool vrtMatchesLayerType(
const QString &vrtPath,
QgsMapLayerType type );
176 friend class TestQgsGdalUtils;
179 #endif // QGSGDALUTILS_H