Skip to content
Snippets Groups Projects
Commit 6fab6257 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : add a IsNull for setDepth over imageIO

parent 3485533a
Branches
Tags
No related merge requests found
...@@ -391,7 +391,10 @@ ImageFileReader<TOutputImage> ...@@ -391,7 +391,10 @@ ImageFileReader<TOutputImage>
//we need to pass the depth information which in on the IO to the projection //we need to pass the depth information which in on the IO to the projection
//to be handle throught the kwl //to be handle throught the kwl
typename TileMapImageIO::Pointer imageIO = dynamic_cast<TileMapImageIO*>(this->GetImageIO()); typename TileMapImageIO::Pointer imageIO = dynamic_cast<TileMapImageIO*>(this->GetImageIO());
dynamic_cast<ossimTileMapModel*>(projection)->setDepth(imageIO->GetDepth()); if(imageIO.IsNotNull())
{
dynamic_cast<ossimTileMapModel*>(projection)->setDepth(imageIO->GetDepth());
}
} }
hasMetaData = projection->saveState(geom_kwl); hasMetaData = projection->saveState(geom_kwl);
// delete projection; //FIXME find out where this should occur // delete projection; //FIXME find out where this should occur
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment