WSL/SLF GitLab Repository

Verified Commit 1c164af7 authored by Nander Wever's avatar Nander Wever Committed by Julien Esseiva
Browse files

Making sure that the properties of the DEM are recomputed when the DEM is updated.

parent aceed4bf
......@@ -329,6 +329,9 @@ void MeteoObj::setGlacierMask(const Grid2DObject& glacierMask)
void MeteoObj::setDEM(const mio::DEMObject& in_dem)
{
dem=in_dem;
dem.setUpdatePpt((DEMObject::update_type)(DEMObject::SLOPE | DEMObject::NORMAL | DEMObject::CURVATURE));
dem.update();
dem.sanitize();
}
//this should only be called when "--nocompute" was set. So we consider that
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment