Commit ec82dc6f authored by Guillaume Pasero's avatar Guillaume Pasero

COMP: missing std:: in OssimPlugins

parent 59524864
Pipeline #2418 passed with stages
in 64 minutes and 32 seconds
......@@ -128,7 +128,7 @@ ossimString ossimOgcWktTranslator::fromOssimKwl(const ossimKeywordlist &kwl,
<< ": "
<< ( ossimUnitTypeLut::instance()->
getEntryString(units).c_str() )
<< endl;
<< std::endl;
break;
}
} // End of switch (units)
......@@ -491,11 +491,11 @@ ossimString ossimOgcWktTranslator::fromOssimKwl(const ossimKeywordlist &kwl,
}
else
{
cerr << "ossimOgcWktTranslator::fromOssimKwl:\n"
std::cerr << "ossimOgcWktTranslator::fromOssimKwl:\n"
<< "Projection translation for "
<< projType
<< " not supported "
<< endl;
<< std::endl;
}
if(pcsCodeVal >= EPSG_CODE_MAX)
......@@ -532,10 +532,10 @@ ossimString ossimOgcWktTranslator::fromOssimKwl(const ossimKeywordlist &kwl,
}
else
{
cerr << "ossimOgcWktTranslator::fromOssimKwl: Datum translation for "
std::cerr << "ossimOgcWktTranslator::fromOssimKwl: Datum translation for "
<< datumType
<<" not supported"
<< endl;
<< std::endl;
}
}
......@@ -700,7 +700,7 @@ bool ossimOgcWktTranslator::toOssimKwl( const ossimString& wktString,
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< MODULE << "DEBUG:"
<< "\nossimProj = " << ossimProj << endl;
<< "\nossimProj = " << ossimProj << std::endl;
}
kwl.add(prefix, ossimKeywordNames::TYPE_KW, ossimProj.c_str(), true);
......@@ -916,7 +916,7 @@ bool ossimOgcWktTranslator::toOssimKwl( const ossimString& wktString,
<< "Projection conversion to OSSIM not supported !!!!!!!!!\n"
<< "Please send the following string to the development staff\n"
<< "to be added to the transaltion to OSSIM\n"
<< wkt << endl;
<< wkt << std::endl;
}
return false;
}
......@@ -1055,7 +1055,7 @@ ossimString ossimOgcWktTranslator::wktToOssimDatum(const ossimString& datum)cons
ossimString ossimOgcWktTranslator::ossimToWktDatum(const ossimString& datum)const
{
ossimString result;
map<std::string, std::string>::const_iterator i = theOssimToWktDatumTranslation.find(datum);
std::map<std::string, std::string>::const_iterator i = theOssimToWktDatumTranslation.find(datum);
if(i != theOssimToWktDatumTranslation.end())
{
result = (*i).second;
......@@ -1066,7 +1066,7 @@ ossimString ossimOgcWktTranslator::ossimToWktDatum(const ossimString& datum)cons
ossimString ossimOgcWktTranslator::wktToOssimProjection(const ossimString& datum)const
{
std::string result;
map<std::string, std::string>::const_iterator i =
std::map<std::string, std::string>::const_iterator i =
theWktToOssimProjectionTranslation.find(datum);
if(i != theWktToOssimProjectionTranslation.end())
{
......@@ -1078,7 +1078,7 @@ ossimString ossimOgcWktTranslator::wktToOssimProjection(const ossimString& datum
ossimString ossimOgcWktTranslator::ossimToWktProjection(const ossimString& datum)const
{
ossimString result;
map<std::string, std::string>::const_iterator i =
std::map<std::string, std::string>::const_iterator i =
theOssimToWktProjectionTranslation.find(datum);
if(i != theOssimToWktProjectionTranslation.end())
{
......
......@@ -217,7 +217,7 @@ namespace ossimplugins
/*
* Leader file data reading
*/
std::ifstream leaderFile(leaFilename.c_str(), ios::in | ios::binary);
std::ifstream leaderFile(leaFilename.c_str(), std::ios::in | std::ios::binary);
leaderFile >> *theAlosPalsarLeader;
leaderFile.close();
......@@ -241,7 +241,7 @@ namespace ossimplugins
/*
* Read header of data file for image size info
*/
std::ifstream dataFile(datFilename.c_str(), ios::in | ios::binary);
std::ifstream dataFile(datFilename.c_str(), std::ios::in | std::ios::binary);
dataFile >> *theAlosPalsarData;
dataFile.close();
......@@ -682,7 +682,7 @@ namespace ossimplugins
bool ossimAlosPalsarModel::isAlosPalsarLeader(const ossimFilename& file) const
{
std::ifstream candidate(file.c_str(), ios::in | ios::binary);
std::ifstream candidate(file.c_str(), std::ios::in | std::ios::binary);
char alosFileName[16];
candidate.seekg(48);
......@@ -745,7 +745,7 @@ namespace ossimplugins
bool ossimAlosPalsarModel::isAlosPalsarData(const ossimFilename& file) const
{
std::ifstream candidate(file.c_str(), ios::in | ios::binary);
std::ifstream candidate(file.c_str(), std::ios::in | std::ios::binary);
char alosFileName[16];
candidate.seekg(48);
......
......@@ -119,14 +119,14 @@ namespace ossimplugins
// Capture stream flags since we are going to mess with them.
std::ios_base::fmtflags f = out.flags();
out << "\nDump of ossimCosmoSkymedModel at address " << hex << this
<< dec
out << "\nDump of ossimCosmoSkymedModel at address " << std::hex << this
<< std::dec
<< "\n------------------------------------------------"
<< "\n theImageID = " << theImageID
<< "\n theImageSize = " << theImageSize
<< "\n------------------------------------------------"
<< "\n " << endl;
<< "\n " << std::endl;
// Set the flags back.
out.flags(f);
......
......@@ -125,7 +125,7 @@ namespace ossimplugins
* Opening and test of the file
*/
ossimFilename Filename = file;
ifstream dataFile(Filename.c_str(), ios::in | ios::binary);
std::ifstream dataFile(Filename.c_str(), std::ios::in | std::ios::binary);
if (dataFile.eof())
{
dataFile.close();
......@@ -368,7 +368,7 @@ namespace ossimplugins
// Capture the original flags.
std::ios_base::fmtflags f = out.flags();
out << setprecision(15) << setiosflags(ios::fixed)
out << std::setprecision(15) << std::setiosflags(std::ios::fixed)
<< "\nossimEnvisatAsarModel data members:\n"
<< "_pixel_spacing: " << _pixel_spacing << "\n"
<< "_n_srgr: " << _n_srgr << "\n";
......
......@@ -195,7 +195,7 @@ namespace ossimplugins
/*
* Leader file data reading
*/
std::ifstream leaderFile(leaFilename.c_str(), ios::in | ios::binary);
std::ifstream leaderFile(leaFilename.c_str(), std::ios::in | std::ios::binary);
leaderFile >> *theErsSarleader;
leaderFile.close();
......@@ -613,8 +613,8 @@ namespace ossimplugins
ossimString filename(kwl.find("filename"));
filename.upcase();
//std::transform(filename.begin(), filename.end(), filename.begin(), toupper);
string::size_type loc = filename.find("PRI");
if (loc != string::npos)
std::string::size_type loc = filename.find("PRI");
if (loc != std::string::npos)
{
_isProductGeoreferenced = true;
}
......@@ -646,7 +646,7 @@ namespace ossimplugins
bool ossimErsSarModel::isErsLeader(const ossimFilename& file) const
{
std::ifstream candidate(file.c_str(), ios::in | ios::binary);
std::ifstream candidate(file.c_str(), std::ios::in | std::ios::binary);
char ersFileName[16];
candidate.seekg(48);
......
......@@ -326,7 +326,7 @@ bool ossimFormosatDimapSupportData::loadXmlFile(const ossimFilename& file)
//---
// Check that it is a FORMOSAT DIMAP file format
//---
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
xml_nodes.clear();
ossimString xpath = "/Dimap_Document/Dataset_Sources/Source_Information/Scene_Source/MISSION";
xmlDocument->findNodes(xpath, xml_nodes);
......@@ -803,7 +803,7 @@ void ossimFormosatDimapSupportData::getGeoPosPoint (ossim_uint32 point,
}
}
void ossimFormosatDimapSupportData::printInfo(ostream& os) const
void ossimFormosatDimapSupportData::printInfo(std::ostream& os) const
{
ossimString corr_att = "NO";
if (theStarTrackerUsed)
......@@ -1522,7 +1522,7 @@ bool ossimFormosatDimapSupportData::parsePart1(
static const char MODULE[] = "ossimFormosatDimapSupportData::parsePart1";
ossimString xpath;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Fetch the ImageSize:
......@@ -2351,7 +2351,7 @@ bool ossimFormosatDimapSupportData::initMetadataVersion(ossimRefPtr<ossimXmlDocu
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "DEBUG:\nCould not find: " << xpath
<< endl;
<< std::endl;
}
return false;
}
......@@ -2386,7 +2386,7 @@ bool ossimFormosatDimapSupportData::initImageId(
ossimRefPtr<ossimXmlDocument> xmlDocument)
{
ossimString xpath;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Fetch the Image ID:
......@@ -2400,7 +2400,7 @@ bool ossimFormosatDimapSupportData::initImageId(
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "DEBUG:\nCould not find: " << xpath
<< endl;
<< std::endl;
}
return false;
}
......@@ -2412,7 +2412,7 @@ bool ossimFormosatDimapSupportData::initSceneSource(
ossimRefPtr<ossimXmlDocument> xmlDocument)
{
ossimString xpath;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Fetch the mission index (Formosat 1 or 2):
......@@ -2591,7 +2591,7 @@ bool ossimFormosatDimapSupportData::initFramePoints(
ossimRefPtr<ossimXmlDocument> xmlDocument)
{
ossimString xpath;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Corner points:
......
......@@ -162,7 +162,7 @@ public:
//---
// Convenient method to print important image info:
//---
void printInfo (ostream& os) const;
void printInfo (std::ostream& os) const;
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix = 0)const;
......
......@@ -472,8 +472,8 @@ std::ostream& ossimplugins::ossimFormosatModel::print(std::ostream& out) const
// Capture stream flags since we are going to mess with them.
std::ios_base::fmtflags f = out.flags();
out << "\nDump of ossimFormosatModel at address " << (hex) << this
<< (dec)
out << "\nDump of ossimFormosatModel at address " << (std::hex) << this
<< (std::dec)
<< "\n------------------------------------------------"
<< "\n theImageID = " << theImageID
<< "\n theMetadataFile = " << theMetaDataFile
......@@ -495,7 +495,7 @@ std::ostream& ossimplugins::ossimFormosatModel::print(std::ostream& out) const
<< "\n theYawRate = " << theYawRate
<< "\n theFocalLenOffset = " << theFocalLenOffset
<< "\n------------------------------------------------"
<< "\n " << endl;
<< "\n " << std::endl;
// Set the flags back.
out.flags(f);
......@@ -596,14 +596,14 @@ void ossimplugins::ossimFormosatModel::imagingRay(const ossimDpt& image_point,
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "DEBUG:\n\t Psi_x = " << Psi_x
<< "\n\t Psi_y = " << Psi_y << endl;
<< "\n\t Psi_y = " << Psi_y << std::endl;
}
ossimColumnVector3d u_sat (-tan(Psi_y), tan(Psi_x), -(1.0 + theFocalLenOffset));
if (traceDebug() || runtime_dbflag)
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "DEBUG \n\t u_sat = " << u_sat << endl;
<< "DEBUG \n\t u_sat = " << u_sat << std::endl;
}
//
......@@ -617,7 +617,7 @@ void ossimplugins::ossimFormosatModel::imagingRay(const ossimDpt& image_point,
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "DEBUG:\n\t theSatToOrbRotation = " << satToOrbit
<< "\n\t u_orb = " << u_orb << endl;
<< "\n\t u_orb = " << u_orb << std::endl;
}
//
......@@ -648,7 +648,7 @@ void ossimplugins::ossimFormosatModel::imagingRay(const ossimDpt& image_point,
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "DEBUG:\n\t orbToEcfRotation = " << orbToEcfRotation
<< "\n\t u_ecf = " << u_ecf << endl;
<< "\n\t u_ecf = " << u_ecf << std::endl;
}
//
......
......@@ -94,7 +94,7 @@ public:
* Writes a template of geom keywords processed by loadState and saveState
* to output stream.
*/
static void writeGeomTemplate(ostream& os);
static void writeGeomTemplate(std::ostream& os);
/*!
* Given an image point and height, initializes worldPoint.
......
......@@ -133,7 +133,7 @@ namespace ossimplugins
return time;
}
bool ossimGeometricSarSensorModel::getPlatformPositionAtLine(double line, vector<double>& position, vector<double>& speed)
bool ossimGeometricSarSensorModel::getPlatformPositionAtLine(double line, std::vector<double>& position, std::vector<double>& speed)
{
JSDDateTime time = getTime(line);
return _platformPosition->getPlatformPositionAtTime(time,position,speed);
......@@ -532,13 +532,13 @@ namespace ossimplugins
// if (result)
// {
// ossimNotify(ossimNotifyLevel_DEBUG)
// << "calling saveState to verify loadState..." << endl;
// << "calling saveState to verify loadState..." << std::endl;
// ossimKeywordlist kwl2;
// saveState(kwl2, 0);
// ossimNotify(ossimNotifyLevel_DEBUG)
// << "saveState result after loadState:" << kwl2 << endl;
// << "saveState result after loadState:" << kwl2 << std::endl;
// }
if (traceDebug())
......@@ -574,7 +574,7 @@ namespace ossimplugins
std::ostream& ossimGeometricSarSensorModel::print(std::ostream& out) const
{
out << setprecision(15) << setiosflags(ios::fixed)
out << std::setprecision(15) << std::setiosflags(std::ios::fixed)
<< "\nossimGeometricSarSensorModel class data members:\n";
const char* prefix = 0;
......@@ -631,7 +631,7 @@ bool ossimGeometricSarSensorModel::createReplacementOCG()
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_NOTICE)<<"\nComputing coarse grid..."<<endl;
ossimNotify(ossimNotifyLevel_NOTICE)<<"\nComputing coarse grid..."<<std::endl;
}
_replacementOcgModel->buildGrid(theImageClipRect, this, 500.00, true, false);
......
......@@ -118,7 +118,7 @@ public:
* @param position Position of the sensor at line line
* @param speed Speed of the sensor at line line
*/
virtual bool getPlatformPositionAtLine(double line, vector<double>& position, vector<double>& speed);
virtual bool getPlatformPositionAtLine(double line, std::vector<double>& position, std::vector<double>& speed);
/**
* @brief This function is able to convert image coordinates into world
......
......@@ -99,7 +99,7 @@ namespace ossimplugins
ossimString xpath,
ossimString& nodeValue)
{
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
xmlDocument->findNodes(xpath, xml_nodes);
if (xml_nodes.size() == 0)
......@@ -286,7 +286,7 @@ namespace ossimplugins
theSwathLastCol = 0;
}
void ossimPleiadesDimapSupportData::printInfo(ostream& os) const
void ossimPleiadesDimapSupportData::printInfo(std::ostream& os) const
{
os << "\n----------------- Info on Pleiades Image -------------------"
......@@ -1249,7 +1249,7 @@ namespace ossimplugins
ossimRefPtr<ossimXmlDocument> xmlDocument)
{
ossimString xpath;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Fetch the Image ID:
......@@ -1292,7 +1292,7 @@ namespace ossimplugins
ossimRefPtr<ossimXmlDocument> xmlDocument)
{
ossimString xpath, nodeValue;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Corner points:
......@@ -1574,7 +1574,7 @@ namespace ossimplugins
{
static const char MODULE[] = "ossimPleiadesDimapSupportData::parseRPCMetadata";
ossimString xpath, nodeValue;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Fetch the Global RFM - Direct Model - Bias:
......@@ -1919,7 +1919,7 @@ namespace ossimplugins
{
// static const char MODULE[] = "ossimPleiadesDimapSupportData::parseMetadataIdentification";
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
ossimString xpath, nodeValue;
theXmlDocumentRoot = "/PHR_Dimap_Document";
......@@ -1971,7 +1971,7 @@ namespace ossimplugins
{
// static const char MODULE[] = "ossimPleiadesDimapSupportData::parseMetadataIdentification";
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
ossimString xpath, nodeValue;
theXmlDocumentRoot = "/DIMAP_Document";
......@@ -1990,7 +1990,7 @@ namespace ossimplugins
theXmlDocumentRoot = "/PHR_DIMAP_Document";
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the old root: " << theXmlDocumentRoot << endl;
ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the old root: " << theXmlDocumentRoot << std::endl;
}
xml_nodes.clear();
......@@ -2005,7 +2005,7 @@ namespace ossimplugins
theXmlDocumentRoot = "/Dimap_Document";
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the new root: " << theXmlDocumentRoot << endl;
ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the new root: " << theXmlDocumentRoot << std::endl;
}
xml_nodes.clear();
......@@ -2017,7 +2017,7 @@ namespace ossimplugins
setErrorStatus();
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath << endl;
ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath << std::endl;
}
return false;
}
......@@ -2113,7 +2113,7 @@ namespace ossimplugins
{
// static const char MODULE[] = "ossimPleiadesDimapSupportData::parseProcessingInformation";
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
ossimString xpath, nodeValue;
//---
......@@ -2156,7 +2156,7 @@ namespace ossimplugins
bool ossimPleiadesDimapSupportData::parseRasterData(ossimRefPtr<ossimXmlDocument> xmlDocument)
{
static const char MODULE[] = "ossimPleiadesDimapSupportData::parseRasterData";
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
ossimString xpath, nodeValue;
//---
// Fetch if the product file is linked to one or many JP2 files:
......@@ -2471,7 +2471,7 @@ namespace ossimplugins
bool ossimPleiadesDimapSupportData::parseGeometricData(ossimRefPtr<ossimXmlDocument> xmlDocument)
{
ossimString xpath, nodeValue;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
xml_nodes.clear();
if (theDIMAPVersion == OSSIM_PLEIADES_DIMAPv1)
......@@ -2760,7 +2760,7 @@ namespace ossimplugins
{
// static const char MODULE[] = "ossimPleiadesDimapSupportData::parseDatasetSources";
ossimString xpath, nodeValue;
vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes;
//---
// Fetch the mission index (1A or 1B) ?
......
......@@ -82,7 +82,7 @@ namespace ossimplugins
//---
// Convenient method to print important image info:
//---
void printInfo (ostream& os) const;
void printInfo (std::ostream& os) const;
/**
* Method to save the state of the object to a keyword list.
......
......@@ -107,8 +107,8 @@ namespace ossimplugins
// Capture stream flags since we are going to mess with them.
std::ios_base::fmtflags f = out.flags();
out << "\nDump of ossimPleiadesModel at address " << (hex) << this
<< (dec)
out << "\nDump of ossimPleiadesModel at address " << (std::hex) << this
<< (std::dec)
<< "\n------------------------------------------------"
<< "\n theImageID = " << theImageID
<< "\n theImageSize = " << theImageSize
......@@ -116,7 +116,7 @@ namespace ossimplugins
<< "\n theRefImgPt = " << theRefImgPt
<< "\n theProcessingLevel = " << theSupportData->getProcessingLevel()
<< "\n------------------------------------------------"
<< "\n " << endl;
<< "\n " << std::endl;
// Set the flags back.
out.flags(f);
......
......@@ -115,7 +115,7 @@ double ossimRadarSat2Model::getSlantRangeFromGeoreferenced(double col) const
<< "\n(col-_refPoint->get_pix_col()) "
<< (col-_refPoint->get_pix_col())
<< "\n_refPoint->get_pix_col() : " << _refPoint->get_pix_col()
<< "\n relativeGroundRange : " << relativeGroundRange << endl;
<< "\n relativeGroundRange : " << relativeGroundRange << std::endl;
}
int numSet = FindSRGRSetNumber((_refPoint->get_ephemeris())->get_date()) ;
......@@ -303,7 +303,7 @@ bool ossimRadarSat2Model::open(const ossimFilename& file)
ossimNotify(ossimNotifyLevel_DEBUG)
<< "theImageClipRect : " << theImageClipRect
<< "ul, ur, lr, ll " << ul << ", " << ur
<< ", " << lr << " , " << ll << endl;
<< ", " << lr << " , " << ll << std::endl;
}
setGroundRect(ul, ur, lr, ll); // ossimSensorModel method.
......@@ -328,7 +328,7 @@ std::ostream& ossimRadarSat2Model::print(std::ostream& out) const
// Capture the original flags.
std::ios_base::fmtflags f = out.flags();
out << setprecision(15) << setiosflags(ios::fixed)
out << std::setprecision(15) << std::setiosflags(std::ios::fixed)
<< "\nossimRadarSat2Model class data members:\n"
<< "_n_srgr: " << _n_srgr << "\n";
......
......@@ -711,10 +711,10 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons
double longitudeScale = 0;
double heightScale = 0;
vector<double> lineNumeratorCoefficients = vector<double>(20,0);
vector<double> lineDenominatorCoefficients = vector<double>(20,0);
vector<double> pixelNumeratorCoefficients = vector<double>(20,0);
vector<double> pixelDenominatorCoefficients = vector<double>(20,0);
std::vector<double> lineNumeratorCoefficients = std::vector<double>(20,0);
std::vector<double> lineDenominatorCoefficients = std::vector<double>(20,0);
std::vector<double> pixelNumeratorCoefficients = std::vector<double>(20,0);
std::vector<double> pixelDenominatorCoefficients = std::vector<double>(20,0);
//the final string outputs to the text file
......@@ -724,66 +724,66 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons
if (rs2Check)
{
if (!ossim::getPath(searchbiasError, xdoc, biasErrorStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
biasError = biasErrorStr.toDouble();
if (!ossim::getPath(searchrandomError, xdoc, randomErrorStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
randomError = randomErrorStr.toDouble();
if (!ossim::getPath(searchlineFitQuality, xdoc, lineFitQualityStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
lineFitQuality = lineFitQualityStr.toDouble();
if (!ossim::getPath(searchpixelFitQuality, xdoc, pixelFitQualityStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
pixelFitQuality = pixelFitQualityStr.toDouble();
if (!ossim::getPath(searchlineOffset, xdoc, lineOffsetStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
lineOffset = lineOffsetStr.toDouble();
if (!ossim::getPath(searchpixelOffset, xdoc, pixelOffsetStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
pixelOffset = pixelOffsetStr.toDouble();
if (!ossim::getPath(searchlatitudeOffset, xdoc, latitudeOffsetStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
latitudeOffset = latitudeOffsetStr.toDouble();
if (!ossim::getPath(searchlongitudeOffset, xdoc, longitudeOffsetStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
longitudeOffset = longitudeOffsetStr.toDouble();
if (!ossim::getPath(searchheightOffset, xdoc, heightOffsetStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
heightOffset = heightOffsetStr.toDouble();
// --------------
if (!ossim::getPath(searchlineScale, xdoc, lineScaleStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
lineScale = lineScaleStr.toDouble();
if (!ossim::getPath(searchpixelScale, xdoc, pixelScaleStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
pixelScale = pixelScaleStr.toDouble();
if (!ossim::getPath(searchlatitudeScale, xdoc, latitudeScaleStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
latitudeScale = latitudeScaleStr.toDouble();
// -----------------------
if (!ossim::getPath(searchlongitudeScale, xdoc, longitudeScaleStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
longitudeScale = longitudeScaleStr.toDouble();
if (!ossim::getPath(searchheightScale, xdoc, heightScaleStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
heightScale = heightScaleStr.toDouble();
// ---- parameters for reading in coeefs ------------
......@@ -794,7 +794,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons
if (!ossim::getPath(searchlineNumeratorCoefficients, xdoc, lineNumeratorCoefficientsStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
string lineNumeratorCoefficientsStr_N = lineNumeratorCoefficientsStr[0];
......@@ -810,7 +810,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons
// ------------------
if (!ossim::getPath(searchlineDenominatorCoefficients, xdoc, lineDenominatorCoefficientsStr))
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl;
ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl;
string lineDenominatorCoefficientsStr_N = lineDenominatorCoefficientsStr[0];
......@@ -827,7 +827,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons