本文整理汇总了C++中ossimFilename::noExtension方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimFilename::noExtension方法的具体用法?C++ ossimFilename::noExtension怎么用?C++ ossimFilename::noExtension使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimFilename
的用法示例。
在下文中一共展示了ossimFilename::noExtension方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: parseTiffFile
bool ossimIkonosRpcModel::parseTiffFile(const ossimFilename& filename)
{
bool result = false;
ossimRefPtr<ossimTiffTileSource> tiff = new ossimTiffTileSource();
if ( tiff->open(filename) )
{
if ( !theSupportData )
{
theSupportData = new ossimIkonosMetaData();
}
if ( theSupportData->open(filename) == false )
{
if(traceDebug())
{
// Currently not required by model so we will not error out here.
ossimNotify(ossimNotifyLevel_DEBUG)
<< "WARNING: ossimIkonosMetaData::open returned false.\n"
<< std::endl;
}
}
else
{
// copy ossimIkonosMetada-sensor into ossimIkonosRpcModel-sensorId
theSensorID = theSupportData->getSensorID();
}
//convert file to rpc filename and hdr filename so we can get some info
ossimFilename rpcfile = filename.noExtension();
rpcfile += "_rpc.txt";
ossimFilename hdrfile = filename;
hdrfile.setExtension(ossimString("hdr"));
if( parseHdrData(hdrfile) )
{
// parseRpcData sets the error status on error.
parseRpcData (rpcfile);
if ( !getErrorStatus() ) //check for errors in parsing rpc data
{
finishConstruction();
//---
// Save current state in RPC model format:
//---
ossimString drivePart;
ossimString pathPart;
ossimString filePart;
ossimString extPart;
filename.split(drivePart,
pathPart,
filePart,
extPart);
ossimFilename init_rpc_geom;
init_rpc_geom.merge(drivePart,
pathPart,
INIT_RPC_GEOM_FILENAME,
"");
ossimKeywordlist kwl (init_rpc_geom);
saveState(kwl);
// If we get here set the return status to true.
result = true;
} // matches: if ( !getErrorStatus() )
} // matches: if( parseHdrData(hdrfile) )
} // matches: if ( tiff->open(filename) )
if ( traceExec() )
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "return status: " << (result?"true\n":"false\n")
<< "DEBUG ossimIkonosRpcModel parseTiffFile: returning..."
<< std::endl;
}
return result;
}