Skip to content
Snippets Groups Projects
Commit cf057ef5 authored by Etienne Bougoin's avatar Etienne Bougoin
Browse files

ENH : avoid nan value in DEM

parent 886b9b5d
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,11 @@ GCPsToRPCSensorModelImageFilter< TImage >
if(m_UseDEM)
{
// If so, use it to get the elevation
groundPointWithElevation[2] = m_DEMHandler->GetHeightAboveMSL(groundPoint);
double height = m_DEMHandler->GetHeightAboveMSL(groundPoint);
// To avoid nan value
if (height != height)
height = 0;
groundPointWithElevation[2] = height;
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment