diff --git a/geospatial/src/Dem.cc b/geospatial/src/Dem.cc index d8f46dee..88d541d9 100644 --- a/geospatial/src/Dem.cc +++ b/geospatial/src/Dem.cc @@ -106,7 +106,7 @@ Dem::~Dem() { this->dataPtr->demData.clear(); if (this->dataPtr->dataSet) - GDALClose(reinterpret_cast(this->dataPtr->dataSet)); + GDALClose(GDALDataset::ToHandle(this->dataPtr->dataSet)); } //////////////////////////////////////////////////