Skip to content

Commit

Permalink
throw an exception if IM segment isn't named
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed May 6, 2013
1 parent d1953d2 commit cc57baa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/nitf/NitfFile.cpp
Expand Up @@ -255,6 +255,11 @@ int NitfFile::findIMSegment()
if (iid1 == "INTENSITY " || iid1 == "ELEVATION " || iid1 == "None ")
{
return iSegment;
} else
{
std::ostringstream oss;
oss << "ID was not expected value '" << iid1 <<"'";
throw pdal_error(oss.str());
}
}
}
Expand Down

0 comments on commit cc57baa

Please sign in to comment.