28 static ossimTrace traceDebug(
"ossimCcfHead:debug");
39 theLineChipsPerChunk(0),
40 theSampleChipsPerChunk(0),
41 theRectInFullImageStartLine(0),
42 theRectInFuleImageStartSample(0),
43 theRectInFullImageStopLine(0),
44 theRectInFuleImageStopSample(0),
45 theNumberOfValidImageVertices(0),
46 theValidImageVertices(1),
47 theFirstBandHeaderPointer(0),
48 theRadiometryString(),
53 theNumberOfRLevels(0),
57 theNumberOfSamples(1),
58 theChunksInLineDir(1),
59 theChunksInSampleDir(1)
67 m_connectionString(ccf_file),
74 theLineChipsPerChunk(0),
75 theSampleChipsPerChunk(0),
76 theRectInFullImageStartLine(0),
77 theRectInFuleImageStartSample(0),
78 theRectInFullImageStopLine(0),
79 theRectInFuleImageStopSample(0),
80 theNumberOfValidImageVertices(0),
81 theValidImageVertices(1),
82 theFirstBandHeaderPointer(0),
83 theRadiometryString(
""),
88 theNumberOfRLevels(0),
92 theNumberOfSamples(1),
93 theChunksInLineDir(1),
94 theChunksInSampleDir(1)
96 static const char MODULE[] =
"ossimCcfHead::ossimCcfHead";
105 << MODULE <<
" ERROR!" 106 <<
"\nError initializing from ccf_file: " << ccf_file
107 <<
"\nReturning...\n";
113 const std::string& connectionString)
115 static const char MODULE[] =
"ossimCcfHead::ossimCcfHead";
127 << MODULE <<
" ERROR!" 128 <<
"\nError initializing from ccf_file: " << connectionString
129 <<
"\nReturning...\n";
145 static const char MODULE[] =
"ossimCcfHead::parseCcfHeader";
148 std::string connectionString = ccf_file;
150 createIstream( connectionString, std::ios_base::in|std::ios_base::binary);
161 << MODULE <<
" ERROR!" 169 const std::string& connectionString)
171 static const char MODULE[] =
"ossimCcfHead::parseossimCcfHeader";
226 << MODULE <<
" ERROR!" 228 <<
" Returning...\n";
258 static const char MODULE[] =
"CcfHead::parseV5CcfHeader";
266 << MODULE <<
" Bad Stream passed to method!" 267 <<
"\nReturning...\n";
280 is.getline(tmp, MAX_LEN-1,
'\n');
292 is.getline(tmp, MAX_LEN-1,
'\n');
293 is.getline(tmp, MAX_LEN-1,
'\n');
309 is.getline(tmp, MAX_LEN-1,
'\n');
317 is.getline(tmp, MAX_LEN-1,
'\n');
318 is.getline(tmp, MAX_LEN-1,
'\n');
319 is.getline(tmp, MAX_LEN-1,
'\n');
323 is.getline(tmp, MAX_LEN-1,
'\n');
324 const char* rad = tmp;
325 while ( *rad && (*rad ==
' ')) rad++;
351 is.getline(tmp, MAX_LEN-1,
'\n');
356 is.getline(tmp, MAX_LEN-1,
'\n');
390 is.getline(tmp, MAX_LEN-1,
'\n');
391 is.getline(tmp, MAX_LEN-1,
'\n');
392 is.getline(tmp, MAX_LEN-1,
'\n');
393 is.getline(tmp, MAX_LEN-1,
'\n');
395 is.getline(tmp, MAX_LEN-1,
'\n');
409 static const char MODULE[] =
"CcfHead::parseV6CcfHeader";
417 << MODULE <<
" Bad Stream passed to method!" 418 <<
"\nReturning...\n";
431 is.getline(tmp, MAX_LEN-1,
'\n');
443 is.getline(tmp, MAX_LEN-1,
'\n');
444 is.getline(tmp, MAX_LEN-1,
'\n');
481 is.getline(tmp, MAX_LEN-1,
'\n');
489 is.getline(tmp, MAX_LEN-1,
'\n');
490 is.getline(tmp, MAX_LEN-1,
'\n');
491 is.getline(tmp, MAX_LEN-1,
'\n');
495 is.getline(tmp, MAX_LEN-1,
'\n');
497 const char* rad = tmp;
498 while ( *rad && (*rad ==
' ')) rad++;
524 is.getline(tmp, MAX_LEN-1,
'\n');
528 is.getline(tmp, MAX_LEN-1,
'\n');
562 is.getline(tmp, MAX_LEN-1,
'\n');
563 is.getline(tmp, MAX_LEN-1,
'\n');
564 is.getline(tmp, MAX_LEN-1,
'\n');
565 is.getline(tmp, MAX_LEN-1,
'\n');
567 is.getline(tmp, MAX_LEN-1,
'\n');
581 static const char MODULE[] =
"ossimCcfHead::print";
587 <<
"\nthePixelType: " 599 <<
"\ntheNumberOfValidImageVertices: " 606 out <<
"\ntheValidImageVertices[" << i <<
"]: " 625 <<
"\ntheChunksInSampleDir[" << i <<
"]: " 639 static const char MODULE[] =
"ossimCcfHead::numberOfLines";
644 << MODULE <<
" ERROR!" 645 <<
"\nInvalid reduced res level: " << reduced_res_level
646 <<
"\nHighest reduced res level available: " 659 static const char MODULE[] =
"ossimCcfHead::numberOfSamples";
664 << MODULE <<
" ERROR!" 665 <<
"\nInvalid reduced res level: " << reduced_res_level
666 <<
"\nHighest reduced res level available: " 679 static const char MODULE[] =
"ossimCcfHead::chunksInLineDir";
684 << MODULE <<
" ERROR!" 685 <<
"\nInvalid reduced res level: " << reduced_res_level
686 <<
"\nHighest reduced res level available: " 699 static const char MODULE[] =
"ossimCcfHead::chunksInSampleDir";
704 << MODULE <<
" ERROR!" 705 <<
"\nInvalid reduced res level: " << reduced_res_level
706 <<
"\nHighest reduced res level available: " 720 static const char MODULE[] =
"ossimCcfHead::startOfData";
725 <<
"\nInvalid reduced res level: " << reduced_res_level
726 <<
"\nHighest reduced res level available: " 739 static const char MODULE[] =
"ossimCcfHead::imageRect";
744 <<
"\nInvalid reduced res level: " << reduced_res_level
745 <<
"\nHighest reduced res level available: " 761 static const char MODULE[] =
"ossimCcfHead::parseRadString";
808 << MODULE <<
" Unknown radiometry!" 818 <<
"\nthePixelType: " 16 bit unsigned integer (15 bits used)
bool parseV5CcfHeader(std::istream &is)
ossim_uint32 theNumberOfBands
ossimScalarType thePixelType
ossim_uint32 theLinesPerChip
ossim_uint32 theRectInFullImageStopLine
ossim_uint32 theNumberOfRLevels
ossim_uint32 theRectInFullImageStartLine
ossim_uint32 theBytesPerPixel
ossim_uint32 chunksInLineDir(ossim_uint32 reduced_res_level) const
virtual ossimString getEntryString(ossim_int32 entry_number) const
std::vector< ossim_uint32 > theNumberOfSamples
bool contains(char aChar) const
virtual std::ostream & print(std::ostream &out) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
virtual std::ostream & print(std::ostream &out) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
std::vector< ossim_uint32 > theNumberOfLines
16 bit unsigned integer (14 bits used)
static const ossimErrorCode OSSIM_ERROR
16 bit unsigned integer (13 bits used)
static StreamFactoryRegistry * instance()
ossim_uint32 theLineChipsPerChunk
std::vector< ossim_uint32 > theChunksInSampleDir
static ossimScalarTypeLut * instance()
Returns the static instance of an ossimScalarTypeLut object.
ossimString theRadiometryString
ossim_uint32 chunksInSampleDir(ossim_uint32 reduced_res_level) const
bool parseCcfHeader(const char *ccf_file)
ossimString theCompressionType
std::vector< ossimIpt > theValidImageVertices
unsigned int ossim_uint32
ossim_uint32 theRectInFuleImageStartSample
std::string m_connectionString
std::vector< std::streampos > theStartOfData
std::vector< ossim_uint32 > theChunksInLineDir
ossimErrorCode theErrorStatus
ossim_uint32 numberOfSamples(ossim_uint32 reduced_res_level) const
std::streampos startOfData(ossim_uint32 reduced_res_level) const
ossim_uint32 theFirstBandHeaderPointer
ossim_uint32 theNumberOfValidImageVertices
16 bit unsigned integer (11 bits used)
std::basic_istream< char > istream
Base class for char input streams.
ossim_uint32 numberOfLines(ossim_uint32 reduced_res_level) const
std::shared_ptr< ossim::istream > m_ccfStr
ossim_uint32 theRectInFuleImageStopSample
ossimIrect imageRect(ossim_uint32 reduced_res_level) const
ossim_uint32 theSamplesPerChip
ossim_uint32 theSampleChipsPerChunk
ossim_uint32 theBytesPerChunk
ossim_uint32 highestReducedResSet() const
ossim_uint32 theBytesPerChip
std::basic_istringstream< char > istringstream
Class for char input memory streams.
bool parseV6CcfHeader(std::istream &is)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
std::vector< bool > theOccupiedFlag
16 bit unsigned integer (12 bits used)
ossim_uint32 theVersionNumber