Commit 4b74d3a8 authored by Marina Bertolino's avatar Marina Bertolino

BUG: mantis-1398 change the test dimap version in ossim (Pleiades/Spot6)

parent ffc9c6c9
...@@ -2027,7 +2027,8 @@ namespace ossimplugins ...@@ -2027,7 +2027,8 @@ namespace ossimplugins
ossimString attribute = "version"; ossimString attribute = "version";
ossimString value; ossimString value;
xml_nodes[0]->getAttributeValue(value, attribute); xml_nodes[0]->getAttributeValue(value, attribute);
if (value != "2.0") ossimString majorvalue = value.substr(0, value.find("."));
if (majorvalue != "2")
{ {
setErrorStatus(); setErrorStatus();
if (traceDebug()) if (traceDebug())
......
...@@ -1669,7 +1669,8 @@ namespace ossimplugins ...@@ -1669,7 +1669,8 @@ namespace ossimplugins
ossimString attribute = "version"; ossimString attribute = "version";
ossimString value; ossimString value;
xml_nodes[0]->getAttributeValue(value, attribute); xml_nodes[0]->getAttributeValue(value, attribute);
if (value != "2.0") ossimString majorvalue = value.substr(0, value.find("."));
if (majorvalue != "2")
{ {
setErrorStatus(); setErrorStatus();
if (traceDebug()) if (traceDebug())
......
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