コード例 #1
0
ファイル: ossimTieGpt.cpp プロジェクト: LucHermitte/ossim
std::ostream& ossimTieGpt::printTab(std::ostream& os) const
{
   os << std::setiosflags(std::ios::fixed) << std::setprecision(15);
   os<< lond() ;
   os<<"\t"<< latd();
   os<<"\t"<< height();
   os<<"\t"<< tie.x;
   os<<"\t"<< tie.y;
   os<<"\t"<< score;

   return os;
}
コード例 #2
0
ファイル: Gpt.cpp プロジェクト: star-labs/star_ossim
std::ostream& pqe::Gpt::print(std::ostream& os, pqe_uint32 precision) const
{
   // Capture the original flags.
   std::ios_base::fmtflags f = os.flags();

   os << std::setiosflags(std::ios_base::fixed)
      << std::setprecision(precision);
   os << "( ";

   if(isLatNan())
   {
      os << "nan" << ", ";
   }
   else
   {
      os << latd() << ", ";
   }
   if(isLonNan())
   {
      os << "nan" << ", ";
   }
   else
   {
      os << lond() << ", ";
   }
   if(isHgtNan())
   {
      os << "nan" << ", ";
   }
   else
   {
      // millimeter precision for height
      os << std::setprecision(3) << height() << ", ";
   }
   
   os << (theDatum?theDatum->code().c_str():"") << " )";

   // Reset flags.
   os.setf(f);

   return os;
}