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

Function GDALBuildVRTGetParserUsage

apps/gdalbuildvrt_lib.cpp:2560–2576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2558/************************************************************************/
2559
2560std::string GDALBuildVRTGetParserUsage()
2561{
2562 try
2563 {
2564 GDALBuildVRTOptions sOptions;
2565 GDALBuildVRTOptionsForBinary sOptionsForBinary;
2566 auto argParser =
2567 GDALBuildVRTOptionsGetParser(&sOptions, &sOptionsForBinary);
2568 return argParser->usage();
2569 }
2570 catch (const std::exception &err)
2571 {
2572 CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception: %s",
2573 err.what());
2574 return std::string();
2575 }
2576}
2577
2578/************************************************************************/
2579/* GDALBuildVRTOptionsNew() */

Callers 1

UsageFunction · 0.85

Calls 4

CPLErrorFunction · 0.85
usageMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected