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

Method SetFrom

gcore/gdalalgorithm.cpp:514–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514bool GDALAlgorithmArg::SetFrom(const GDALArgDatasetValue &other)
515{
516 if (m_decl.GetType() != GAAT_DATASET)
517 {
518 CPLError(CE_Failure, CPLE_AppDefined,
519 "Calling SetFrom() on argument '%s' of type %s is "
520 "not supported",
521 GetName().c_str(), GDALAlgorithmArgTypeName(m_decl.GetType()));
522 return false;
523 }
524 if (other.GetDatasetRef() && !CheckCanSetDatasetObject(this))
525 return false;
526 m_explicitlySet = true;
527 std::get<GDALArgDatasetValue *>(m_value)->SetFrom(other);
528 return RunAllActions();
529}
530
531bool GDALAlgorithmArg::Set(const std::vector<std::string> &value)
532{

Callers 3

InsertFeatureMethod · 0.45
CopyLayerMethod · 0.45

Calls 11

CPLErrorFunction · 0.85
GDALAlgorithmArgTypeNameFunction · 0.85
CheckCanSetDatasetObjectFunction · 0.85
moveFunction · 0.85
CloseFunction · 0.85
GetNameFunction · 0.50
GetTypeMethod · 0.45
c_strMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45
ReferenceMethod · 0.45

Tested by

no test coverage detected