Commit 9dfbb243 authored by Victor Poughon's avatar Victor Poughon

BUG: fix assertion error on S1 products

parent 34d39816
Pipeline #789 passed with stage
in 24 minutes and 37 seconds
......@@ -1114,7 +1114,7 @@ namespace ossimplugins
for(std::vector<ossimRefPtr<ossimXmlNode> >::iterator itNode = xnodes.begin(); itNode!=xnodes.end();++itNode, ++idx)
{
int pos = s_printf(prefix, "%s[%d].", sr_gr_prefix.c_str(), idx);
assert(pos >= sizeof(SR_PREFIX)+4 && pos < sizeof(prefix));
assert(pos >= SR_PREFIX.size()+4 && pos < sizeof(prefix));
addMandatory(theProductKwl, prefix + keyAzimuthTime,**itNode, attAzimuthTime);
addMandatory(theProductKwl, prefix + rg0_xpath, **itNode, rg0_xpath);
......@@ -1153,7 +1153,7 @@ namespace ossimplugins
for(std::vector<ossimRefPtr<ossimXmlNode> >::iterator itNode = xnodes.begin(); itNode!=xnodes.end();++itNode,++idx)
{
int pos = s_printf(prefix, "%s[%d].", GCP_PREFIX.c_str(), idx);
assert(pos >= sizeof(SR_PREFIX)+4 && pos < 1024);
assert(pos >= SR_PREFIX.size()+4 && pos < 1024);
#if defined(USE_BOOST_TIME)
const TimeType azimuthTime = getTimeFromFirstNode(**itNode, attAzimuthTime);
add(theProductKwl, prefix, attAzimuthTime, azimuthTime);
......
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