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

Method Close

gcore/gdalalgorithm.cpp:1558–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1556/************************************************************************/
1557
1558bool GDALArgDatasetValue::Close()
1559{
1560 bool ret = true;
1561 if (m_poDS && m_poDS->Dereference() == 0)
1562 {
1563 ret = m_poDS->Close() == CE_None;
1564 delete m_poDS;
1565 }
1566 m_poDS = nullptr;
1567 return ret;
1568}
1569
1570/************************************************************************/
1571/* GDALArgDatasetValue::operator=() */

Callers 1

FinalizeMethod · 0.45

Calls 1

DereferenceMethod · 0.45

Tested by

no test coverage detected