Commit aab66d0a authored by Julien Michel's avatar Julien Michel

ENH: Handling no data (-32768) in DEM mode

parent 1765b0ea
......@@ -146,6 +146,11 @@ private:
dem3dPoint[0]=demPoint[0];
dem3dPoint[1]=demPoint[1];
dem3dPoint[2]=it.Get()[0];
if(dem3dPoint[2] <= -32768)
{
valid=false;
}
}
else
{
......@@ -254,6 +259,7 @@ private:
dem3dPoint[0]=demPoint[0];
dem3dPoint[1]=demPoint[1];
dem3dPoint[2]=it.Get()[0];
valid =(dem3dPoint[2] > -32768);
}
else
{
......
Markdown is supported
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