| 512 | } |
| 513 | |
| 514 | bool 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 | |
| 531 | bool GDALAlgorithmArg::Set(const std::vector<std::string> &value) |
| 532 | { |
no test coverage detected