26 static ossimTrace traceDebug(
"ossimImageMetaData:debug");
29 :theNullPixelArray(0),
32 theMinValuesValidFlag(false),
33 theMaxValuesValidFlag(false),
34 theNullValuesValidFlag(false),
44 :theNullPixelArray(0),
47 theMinValuesValidFlag(false),
48 theMaxValuesValidFlag(false),
49 theNullValuesValidFlag(false),
52 theNumberOfBands(numberOfBands),
71 theMinValuesValidFlag(rhs.theMinValuesValidFlag),
72 theMaxValuesValidFlag(rhs.theMaxValuesValidFlag),
73 theNullValuesValidFlag(rhs.theNullValuesValidFlag),
74 theScalarType(rhs.theScalarType),
75 theBytesPerPixel(rhs.theBytesPerPixel),
76 theNumberOfBands(rhs.theNumberOfBands),
77 theRgbBands(rhs.theRgbBands)
206 std::string pfx = ( prefix ? prefix :
"" );
242 const char* prefix)
const 244 kwl.
add(prefix,
"type",
"ossimImageMetaData",
true);
311 if ( bandList.size() == 3 )
470 ossimString regExpression = std::string(
"^(") + prefix + std::string(
"band0+.)");
477 std::string bs =
"band";
480 for (
ossim_uint32 band = startBand; band < limit; ++band )
486 value = kwl.
findKey( prefix, key );
495 value = kwl.
findKey( prefix, key );
503 value = kwl.
findKey( prefix, key );
536 <<
"ossimImageMetaData::updateMetaData DEBUG" 537 << *
this << std::endl;
545 out << kwl << std::endl;
551 return obj.
print( out );
555 const std::string& prefix)
const 567 value.
string() = std::string(
"^(") + prefix + std::string(
"band[0-9]+.)");
static const char * MIN_VALUE_KW
ossimScalarType getScalarTypeFromString(const ossimString &s) const
Represents serializable keyword/value map.
const std::string & findKey(const std::string &key) const
Find methods that take std::string(s).
static const char * MAX_VALUE_KW
static const char * NULL_VALUE_KW
static ossimString toString(bool aValue)
Numeric to string methods.
ossim_uint32 toUInt32() const
bool toSimpleVector(std::vector< T > &result, const ossimString &stringOfPoints)
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
static ossimScalarTypeLut * instance()
Returns the static instance of an ossimScalarTypeLut object.
OSSIM_DLL double defaultMin(ossimScalarType scalarType)
std::string::size_type size() const
OSSIM_DLL double defaultNull(ossimScalarType scalarType)
unsigned int ossim_uint32
ossim_float64 toFloat64() const
OSSIM_DLL ossim_uint32 scalarSizeInBytes(ossimScalarType scalarType)
static const char * NUMBER_BANDS_KW
static const char * BAND_KW
std::vector< ossimString > getSubstringKeyList(const ossimString ®ularExpression) const
OSSIM_DLL double defaultMax(ossimScalarType scalarType)
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
static const char * SCALAR_TYPE_KW
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
const std::string & string() const