Skip to content
Snippets Groups Projects
Commit fde06ecf authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

BUG: Nodata value in SRTM (253)

parent 155b72d7
Branches
Tags
No related merge requests found
......@@ -76,16 +76,7 @@ ElevDatabaseHeightAboveMSLFunction<TOutputPixel, TCoordRep, NPointDimension>
ossimWorldPoint.lat = point[1];
height = m_ElevManager->getHeightAboveMSL(ossimWorldPoint);
if (!ossim::isnan(height))
{
return static_cast<PixelType>( height );
}
else
{
// Back to the MNT default value
return static_cast<PixelType>( m_DefaultUnknownValue );
}
return static_cast<PixelType>( height );
}
template <class TOutputPixel, class TCoordRep, unsigned int NPointDimension>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment