MCPcopy Create free account
hub / github.com/OSGeo/gdal / GetOutputDriverForRaster

Function GetOutputDriverForRaster

apps/commonutils.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38/* -------------------------------------------------------------------- */
39
40CPLString GetOutputDriverForRaster(const char *pszDestFilename)
41{
42 const CPLStringList aosList(GDALGetOutputDriversForDatasetName(
43 pszDestFilename, GDAL_OF_RASTER, /* bSingleMatch = */ true,
44 /* bEmitWarning = */ true));
45 if (!aosList.empty())
46 {
47 CPLDebug("GDAL", "Using %s driver", aosList[0]);
48 return aosList[0];
49 }
50 return CPLString();
51}
52
53/* -------------------------------------------------------------------- */
54/* EarlySetConfigOptions() */

Callers 11

MAIN_STARTFunction · 0.85
GDALGridFunction · 0.85
validateArgsFunction · 0.85
GDALNearblackFunction · 0.85
MAIN_STARTFunction · 0.85
MAIN_STARTFunction · 0.85
GDALDEMProcessingFunction · 0.85
GDALMultiDimTranslateFunction · 0.85
GDALRasterizeFunction · 0.85
GDALTranslateFunction · 0.85
GDALWarpFunction · 0.85

Calls 4

CPLDebugFunction · 0.85
CPLStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected