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

Function GDALGridGetParserUsage

apps/gdal_grid_lib.cpp:1183–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181/************************************************************************/
1182
1183std::string GDALGridGetParserUsage()
1184{
1185 try
1186 {
1187 GDALGridOptions sOptions;
1188 GDALGridOptionsForBinary sOptionsForBinary;
1189 auto argParser =
1190 GDALGridOptionsGetParser(&sOptions, &sOptionsForBinary, 1);
1191 return argParser->usage();
1192 }
1193 catch (const std::exception &err)
1194 {
1195 CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception: %s",
1196 err.what());
1197 return std::string();
1198 }
1199}
1200
1201/************************************************************************/
1202/* CHECK_HAS_ENOUGH_ADDITIONAL_ARGS() */

Callers 1

UsageFunction · 0.85

Calls 4

GDALGridOptionsGetParserFunction · 0.85
CPLErrorFunction · 0.85
usageMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected