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

Function GDALAlgorithmArgSetAsDatasetValue

gcore/gdalalgorithm.cpp:8975–8981  ·  view source on GitHub ↗

Set the value for a GAAT_DATASET argument. * * It cannot be called several times for a given argument. * Validation checks and other actions are run. * * @param hArg Handle to an argument. Must NOT be null. * @param value Handle to a GDALArgDatasetValue. Must NOT be null. * @return true if success. * @since 3.11 */

Source from the content-addressed store, hash-verified

8973 * @since 3.11
8974 */
8975bool GDALAlgorithmArgSetAsDatasetValue(GDALAlgorithmArgH hArg,
8976 GDALArgDatasetValueH value)
8977{
8978 VALIDATE_POINTER1(hArg, __func__, false);
8979 VALIDATE_POINTER1(value, __func__, false);
8980 return hArg->ptr->SetFrom(*(value->ptr));
8981}
8982
8983/************************************************************************/
8984/* GDALAlgorithmArgSetDataset() */

Callers 1

TEST_FFunction · 0.85

Calls 1

SetFromMethod · 0.45

Tested by 1

TEST_FFunction · 0.68