OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Functions | Variables
ossimGeneralRasterTileSource.cpp File Reference
#include <ossim/imaging/ossimGeneralRasterTileSource.h>
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimDpt.h>
#include <ossim/base/ossimEndian.h>
#include <ossim/base/ossimErrorContext.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimInterleaveTypeLut.h>
#include <ossim/base/ossimIpt.h>
#include <ossim/base/ossimIrect.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimKeywordNames.h>
#include <ossim/base/ossimScalarTypeLut.h>
#include <ossim/base/ossimStreamFactoryRegistry.h>
#include <ossim/base/ossimTrace.h>
#include <ossim/imaging/ossimImageDataFactory.h>
#include <ossim/imaging/ossimImageGeometryRegistry.h>
#include <ossim/projection/ossimMapProjectionFactory.h>
#include <ossim/projection/ossimMapProjection.h>
#include <ossim/support_data/ossimFgdcXmlDoc.h>

Go to the source code of this file.

Functions

RTTI_DEF1_INST(ossimGeneralRasterTileSource, "ossimGeneralRasterTileSource", ossimImageHandler) static ossimTrace traceDebug("ossimGeneralRasterTileSource for (ossim_uint32 i=0;i< aList.size();++i)
 
 if ((aList.size()==1) &&theImageFile.empty())
 
 if (m_bufferInterleave==OSSIM_BSQ_MULTI_FILE)
 
 if (m_outputBandList.empty())
 
 if (m_rasterInfo.getImageDataByteOrder() !=ossim::byteOrder())
 
 if (traceDebug())
 

Variables

 m_bufferInterleave = m_rasterInfo.interleaveType()
 
return true
 

Function Documentation

◆ for()

RTTI_DEF1_INST (ossimGeneralRasterTileSource, "ossimGeneralRasterTileSource", ossimImageHandler) static ossimTrace traceDebug("ossimGeneralRasterTileSource for ( )

Definition at line 917 of file ossimGeneralRasterTileSource.cpp.

References ossimString::c_str(), ossim::StreamFactoryRegistry::instance(), ossimGeneralRasterTileSource::m_fileStrList, ossimErrorCodes::OSSIM_ERROR, ossimNotify(), ossimNotifyLevel_WARN, and ossimErrorStatusInterface::theErrorStatus.

Referenced by ossimBitMaskTileSource::getTile().

918  {
919  ossimFilename f = aList[i];
920 
921  // open it...
922  std::shared_ptr<ossim::istream> is = ossim::StreamFactoryRegistry::instance()->
923  createIstream(f);
924 
925  // check the stream...
926  if( is )
927  {
928  // Check the file stream.
929  if ( is->fail() )
930  {
931  theErrorStatus = ossimErrorCodes::OSSIM_ERROR;
933  << "ossimGeneralRasterTileSource::open" << " ERROR:\n"
934  << "Cannot open: " << f.c_str() << std::endl;
935  is = 0;
936  return false;
937  }
938  }
939 
940  // Check the file size (removed).
941 
942  m_fileStrList.push_back(is); // Add it to the list...
943  }
static const ossimErrorCode OSSIM_ERROR
static StreamFactoryRegistry * instance()
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ if() [1/5]

if ( (aList.size()==1) &&theImageFile.empty()  )

Definition at line 945 of file ossimGeneralRasterTileSource.cpp.

References ossimImageHandler::theImageFile.

946  {
947  theImageFile = aList[0];
948  }

◆ if() [2/5]

◆ if() [3/5]

if ( m_outputBandList.  empty())

Definition at line 957 of file ossimGeneralRasterTileSource.cpp.

References ossimImageSource::getOutputBandList(), and ossimGeneralRasterTileSource::m_outputBandList.

958  {
959  // Set starting output band list to identity.
960  ossimImageSource::getOutputBandList( m_outputBandList );
961  }
virtual void getOutputBandList(std::vector< ossim_uint32 > &bandList) const
Initializes bandList.

◆ if() [4/5]

if ( m_rasterInfo.getImageDataByteOrder() !  = ossim::byteOrder())

Definition at line 967 of file ossimGeneralRasterTileSource.cpp.

References ossimGeneralRasterTileSource::m_swapBytesFlag.

968  {
969  m_swapBytesFlag = true;
970  }

◆ if() [5/5]

if ( traceDebug()  )

Definition at line 972 of file ossimGeneralRasterTileSource.cpp.

973  {
975  << "ossimGeneralRasterTileSource::initializeHandler()" << " DEBUG:"
976  << "\nScalar type: "
978  getEntryString(m_rasterInfo.getImageMetaData().getScalarType())
979  << "\nByte swapping is "
980  << (m_swapBytesFlag?"enabled.":"not enabled.")
981  // << "\nm_bufferSizeInPixels: " << m_bufferSizeInPixels
982  // << "\nbuffer size: " << buffer_size
983  << "\nRasterInfo:\n";
984  m_rasterInfo.print(ossimNotify(ossimNotifyLevel_DEBUG));
985  }
static ossimScalarTypeLut * instance()
Returns the static instance of an ossimScalarTypeLut object.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

Variable Documentation

◆ m_bufferInterleave

m_bufferInterleave = m_rasterInfo.interleaveType()

Definition at line 951 of file ossimGeneralRasterTileSource.cpp.

◆ true

return true