Commit 6b87b4c9 authored by Cyrille Valladeau's avatar Cyrille Valladeau

ENH : change in TSX ProductDoc parsing

parent 89aea8e9
......@@ -718,12 +718,12 @@ bool ossimplugins::ossimTerraSarProductDoc::getRadiometricCorrection(
}
bool ossimplugins::ossimTerraSarProductDoc::getReferencePoint(
const ossimXmlDocument* xdoc, ossimString& s) const
{
ossimString path = "/level1Product/productSpecific/projectedImageInfo/slantToGroundRangeProjection/referencePoint";
return ossim::getPath(path, xdoc, s);
}
bool ossimplugins::ossimTerraSarProductDoc::getReferencePoint(
const ossimXmlDocument* xdoc, ossimString& s) const
{
ossimString path = "/level1Product/productSpecific/projectedImageInfo/slantToGroundRangeProjection/referencePoint";
return ossim::getPath(path, xdoc, s);
}
bool ossimplugins::ossimTerraSarProductDoc::getImageDataStrartWith(
const ossimXmlDocument* xdoc, ossimString& s) const
......@@ -848,17 +848,46 @@ bool ossimplugins::ossimTerraSarProductDoc::getRadarCenterFrequency(
bool ossimplugins::ossimTerraSarProductDoc::getAzimuthStartTime(
const ossimXmlDocument* xdoc, ossimString& s) const
{
ossimString path =
"/level1Product/instrument/settings/rxGainSetting/startTimeUTC";
return ossim::getPath(path, xdoc, s);
ossimString path =
"/level1Product/productInfo/sceneInfo/start/timeUTC";
bool res = ossim::getPath(path, xdoc, s);
if(!res)
{
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG)<< "Node \"/level1Product/productInfo/sceneInfo/start/timeUTC\" invalid, trying \"/level1Product/instrument/settings/rxGainSetting/startTimeUTC\"...\n";
}
path = "/level1Product/instrument/settings/rxGainSetting/startTimeUTC";
res = ossim::getPath(path, xdoc, s);
}
return res;
}
bool ossimplugins::ossimTerraSarProductDoc::getAzimuthStopTime(
const ossimXmlDocument* xdoc, ossimString& s) const
{
ossimString path =
"/level1Product/instrument/settings/rxGainSetting/stopTimeUTC";
return ossim::getPath(path, xdoc, s);
std::cout<<"getAzimuthStopTimegetAzimuthStopTimegetAzimuthStopTimegetAzimuthStopTimegetAzimuthStopTimeres"<<std::endl;
ossimString path =
"/level1Product/productInfo/sceneInfo/stop/timeUTC";
bool res = ossim::getPath(path, xdoc, s);
if(!res)
{
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG)<< "Node \"/level1Product/productInfo/sceneInfo/stop/timeUTC\" invalid, trying \"/level1Product/instrument/settings/rxGainSetting/stopTimeUTC\"...\n";
}
path = "/level1Product/instrument/settings/settingRecord/dataSegment segmentID/stopTimeUTC";// rxGainSetting/stopTimeUTC";
res = ossim::getPath(path, xdoc, s);
std::cout<<res<<std::endl;
}
return res;
}
bool ossimplugins::ossimTerraSarProductDoc::getCommonPrf(
......
......@@ -121,7 +121,7 @@ namespace ossimplugins
ossimString& s) const;
bool getReferencePoint(const ossimXmlDocument* xdoc,
ossimString& s) const;
ossimString& s) const;
bool getImageDataStrartWith(const ossimXmlDocument* xdoc,
ossimString& s) const;
......
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