OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Enumerations | |
enum | { MAX_RECURSION_LEVEL = 8 } |
Functions | |
std::ostream & | print (H5::H5File *file, std::ostream &out) |
Print method. More... | |
void | printIterative (H5::H5File *file, const std::string &groupName, const std::string &prefix, ossim_uint32 &recursedCount, std::ostream &out) |
Iterative print method. More... | |
void | printObject (H5::H5File *file, const std::string &objectName, const std::string &prefix, std::ostream &out) |
Prints an object. More... | |
void | printEnumType (H5::DataSet &dataset, H5::EnumType &dataType, const std::string &prefix, std::ostream &out) |
void | printIntType (H5::DataSet &dataset, H5::IntType &dataType, const char *dataPtr, const std::string &prefix, std::ostream &out) |
void | printFloatType (H5::DataSet &dataset, H5::FloatType &dataType, const char *dataPtr, const std::string &prefix, std::ostream &out) |
void | printArrayType (H5::DataSet &dataset, H5::ArrayType &dataType, const char *dataPtr, const std::string &prefix, std::ostream &out) |
void | printStrType (H5::DataSet &dataset, H5::StrType &dataType, const char *dataPtr, const std::string &prefix, std::ostream &out) |
void | printCompound (H5::DataSet &dataset, const std::string &prefix, std::ostream &out) |
Prints a compound object. More... | |
bool | getGroupAttributeValue (H5::H5File *file, const std::string &group, const std::string &key, std::string &value) |
Gets string value for attribute key. More... | |
bool | getDatasetAttributeValue (H5::H5File *file, const std::string &objectName, const std::string &key, std::string &value) |
Gets string value for attribute key. More... | |
void | printAttribute (const H5::Attribute &attr, const std::string &prefix, std::ostream &out) |
void | combine (const std::string &left, const std::string &right, char separator, std::string &result) |
void | getDatasetNames (H5::H5File *file, std::vector< std::string > &names) |
std::string | getDatatypeClassType (ossim_int32 type) |
bool | isLoadableAsImage (H5::H5File *file, const std::string &datasetName) |
void | iterateGroupForDatasetNames (H5::H5File *file, const std::string &group, std::vector< std::string > &names, ossim_uint32 &recursedCount) |
void | getExtents (const H5::DataSet *dataset, std::vector< ossim_uint32 > &extents) |
ossimScalarType | getScalarType (const H5::DataSet *dataset) |
ossimScalarType | getScalarType (ossim_int32 typeClass, size_t size, bool isSigned) |
Gets scalar type from args. More... | |
ossimByteOrder | getByteOrder (const H5::AbstractDs *dataset) |
ossimByteOrder | getByteOrder (const H5::DataType *dataType) |
bool | getValidBoundingRect (H5::DataSet &dataset, const std::string &name, ossimIrect &rect) |
Gets the valid bounding rect of the dataset excluding nulls on front and back. More... | |
ossimRefPtr< ossimProjection > | getBilinearProjection (H5::DataSet &latDataSet, H5::DataSet &lonDataSet, const ossimIrect &validRect) |
Gets bilinear projection from Latitude, Longitude layer. More... | |
bool | crossesDateline (H5::DataSet &dataset, const ossimIrect &validRect) |
Checks for dateline cross. More... | |
bool | crossesDateline (const std::vector< ossim_float32 > &lineBuffer) |
anonymous enum |
Enumerator | |
---|---|
MAX_RECURSION_LEVEL |
Definition at line 53 of file ossimH5Util.h.
void ossim_hdf5::combine | ( | const std::string & | left, |
const std::string & | right, | ||
char | separator, | ||
std::string & | result | ||
) |
Definition at line 1025 of file ossimH5Util.cpp.
Referenced by iterateGroupForDatasetNames(), and printIterative().
bool ossim_hdf5::crossesDateline | ( | H5::DataSet & | dataset, |
const ossimIrect & | validRect | ||
) |
Checks for dateline cross.
dataset | |
validRect | Initialized by this. |
Definition at line 1774 of file ossimH5Util.cpp.
References ossim::byteOrder(), getByteOrder(), ossimLookUpTable::getEntryString(), getScalarType(), ossimIrect::height(), ossimScalarTypeLut::instance(), ossimIrect::ll(), OSSIM_FLOAT32, ossimNotify(), ossimNotifyLevel_WARN, ossimEndian::swap(), ossimIrect::ul(), ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
Referenced by ossimImageGeometry::calculatePolyBounds(), and ossimH5GridModel::setGridNodes().
bool ossim_hdf5::crossesDateline | ( | const std::vector< ossim_float32 > & | lineBuffer | ) |
Definition at line 1896 of file ossimH5Util.cpp.
ossimRefPtr< ossimProjection > ossim_hdf5::getBilinearProjection | ( | H5::DataSet & | latDataSet, |
H5::DataSet & | lonDataSet, | ||
const ossimIrect & | validRect | ||
) |
Gets bilinear projection from Latitude, Longitude layer.
latDataSet | H5::DataSet& to layer, e.g. /All_Data/VIIRS-DNB-GEO_All/Latitude |
lonDataSet | H5::DataSet& to layer, e.g. /All_Data/VIIRS-DNB-GEO_All/Longitude |
Definition at line 1957 of file ossimH5Util.cpp.
References ossim::byteOrder(), ossimRefPtr< T >::get(), getByteOrder(), ossimLookUpTable::getEntryString(), getScalarType(), ossimScalarTypeLut::instance(), ossimGpt::lat, ossimGpt::lon, ossimIrect::lr(), OSSIM_FLOAT32, ossimNotify(), ossimNotifyLevel_WARN, ossimBilinearProjection::setTiePoints(), ossimEndian::swap(), ossimIrect::ul(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
Referenced by ossimH5ImageHandler::getInternalImageGeometry(), and ossimH5GridModel::setGridNodes().
ossimByteOrder ossim_hdf5::getByteOrder | ( | const H5::AbstractDs * | dataset | ) |
Definition at line 1531 of file ossimH5Util.cpp.
References ossim::byteOrder(), OSSIM_BIG_ENDIAN, and OSSIM_LITTLE_ENDIAN.
Referenced by crossesDateline(), getBilinearProjection(), getValidBoundingRect(), ossimH5ImageDataset::initialize(), printArrayType(), printAttribute(), printFloatType(), printIntType(), printObject(), and ossimH5GridModel::setGridNodes().
ossimByteOrder ossim_hdf5::getByteOrder | ( | const H5::DataType * | dataType | ) |
Definition at line 1505 of file ossimH5Util.cpp.
References ossim::byteOrder(), OSSIM_BIG_ENDIAN, and OSSIM_LITTLE_ENDIAN.
bool ossim_hdf5::getDatasetAttributeValue | ( | H5::H5File * | file, |
const std::string & | objectName, | ||
const std::string & | key, | ||
std::string & | value | ||
) |
Gets string value for attribute key.
This assumes H5::Attribute type class is a H5T_STRING.
file | Pointer to H5File instance. |
dataset | Data to open. Examples: "/" "/Data_Products/VIIRS-DNB-GEO" |
key | This is key string. Examples: "Mission_Name" "N_Collection_Short_Name" |
value | Initialized by this. |
Definition at line 779 of file ossimH5Util.cpp.
References ossimNotify(), and ossimNotifyLevel_WARN.
Referenced by ossimH5ImageHandler::addMetadata().
void ossim_hdf5::getDatasetNames | ( | H5::H5File * | file, |
std::vector< std::string > & | names | ||
) |
Definition at line 1041 of file ossimH5Util.cpp.
References iterateGroupForDatasetNames().
Referenced by ossimH5ImageHandler::getLatLonDatasetNames(), and print().
std::string ossim_hdf5::getDatatypeClassType | ( | ossim_int32 | type | ) |
void ossim_hdf5::getExtents | ( | const H5::DataSet * | dataset, |
std::vector< ossim_uint32 > & | extents | ||
) |
Definition at line 1255 of file ossimH5Util.cpp.
Referenced by ossimH5ImageHandler::addImageDatasetEntries(), ossimH5ImageDataset::initialize(), isLoadableAsImage(), and printObject().
bool ossim_hdf5::getGroupAttributeValue | ( | H5::H5File * | file, |
const std::string & | group, | ||
const std::string & | key, | ||
std::string & | value | ||
) |
Gets string value for attribute key.
This assumes H5::Attribute type class is a H5T_STRING.
file | Pointer to H5File instance. |
group | Group to open. Examples: "/" "/Data_Products/VIIRS-DNB-GEO" |
key | This is key string. Examples: "Mission_Name" "N_Collection_Short_Name" |
value | Initialized by this. |
Definition at line 725 of file ossimH5Util.cpp.
Referenced by ossimH5ImageHandler::addMetadata(), ossimH5ImageHandler::getLatLonDatasets(), and ossimH5ImageHandler::isNppMission().
ossimScalarType ossim_hdf5::getScalarType | ( | const H5::DataSet * | dataset | ) |
Definition at line 1282 of file ossimH5Util.cpp.
References OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_SINT32, OSSIM_SINT64, OSSIM_SINT8, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT64, and OSSIM_UINT8.
Referenced by crossesDateline(), getBilinearProjection(), ossimHdf5ImageHandler::getTile(), ossimH5ImageHandler::getTile(), getValidBoundingRect(), ossimH5ImageDataset::initialize(), printAttribute(), printIntType(), printObject(), and ossimH5GridModel::setGridNodes().
ossimScalarType ossim_hdf5::getScalarType | ( | ossim_int32 | typeClass, |
size_t | size, | ||
bool | isSigned | ||
) |
Gets scalar type from args.
typeClass | H5T_INTEGER or H5T_FLOAT |
size | In bytes of attribute. |
isSigned | Integer data only, true if signed, false if not. |
Definition at line 1362 of file ossimH5Util.cpp.
References ossim::isSigned(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_SINT32, OSSIM_SINT64, OSSIM_SINT8, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT64, OSSIM_UINT8, ossimNotify(), ossimNotifyLevel_WARN, and size.
bool ossim_hdf5::getValidBoundingRect | ( | H5::DataSet & | dataset, |
const std::string & | name, | ||
ossimIrect & | rect | ||
) |
Gets the valid bounding rect of the dataset excluding nulls on front and back.
dataset | |
name | Name of dataset. Used for null scanning. |
rect | Initialized by this. |
Definition at line 1564 of file ossimH5Util.cpp.
References ossim::almostEqual(), ossim::byteOrder(), getByteOrder(), ossimLookUpTable::getEntryString(), getScalarType(), ossimScalarTypeLut::instance(), ossimIrect::lr(), OSSIM_FLOAT32, ossimNotify(), ossimNotifyLevel_WARN, ossimEndian::swap(), ossimIrect::ul(), ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
Referenced by ossimH5ImageDataset::initialize().
bool ossim_hdf5::isLoadableAsImage | ( | H5::H5File * | file, |
const std::string & | datasetName | ||
) |
Definition at line 1110 of file ossimH5Util.cpp.
References getExtents(), ossimH5Options::instance(), and ossimH5Options::isDatasetRenderable().
void ossim_hdf5::iterateGroupForDatasetNames | ( | H5::H5File * | file, |
const std::string & | group, | ||
std::vector< std::string > & | names, | ||
ossim_uint32 & | recursedCount | ||
) |
Definition at line 1184 of file ossimH5Util.cpp.
References combine(), ossimH5Options::instance(), ossimNotify(), and ossimNotifyLevel_WARN.
Referenced by getDatasetNames().
std::ostream & ossim_hdf5::print | ( | H5::H5File * | file, |
std::ostream & | out | ||
) |
Print method.
file | Pointer to H5File instance. |
out | Stream to print to. |
Definition at line 41 of file ossimH5Util.cpp.
References ossimString::empty(), getDatasetNames(), and printIterative().
Referenced by ossimplugins::ossimTerraSarModel::findTSXLeader(), ATP::AutoTiePoint::print(), and ossim::print().
void ossim_hdf5::printArrayType | ( | H5::DataSet & | dataset, |
H5::ArrayType & | dataType, | ||
const char * | dataPtr, | ||
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Definition at line 450 of file ossimH5Util.cpp.
References ossim::byteOrder(), getByteOrder(), ossimEndian::swap(), and ossimString::toString().
Referenced by printCompound().
void ossim_hdf5::printAttribute | ( | const H5::Attribute & | attr, |
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Definition at line 829 of file ossimH5Util.cpp.
References ossim::byteOrder(), getByteOrder(), getScalarType(), ossim::isSigned(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_SINT16, OSSIM_SINT32, OSSIM_SINT64, OSSIM_SINT8, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT64, OSSIM_UINT8, size, ossimString::string(), ossimEndian::swap(), and ossimString::toString().
Referenced by printIterative(), and printObject().
void ossim_hdf5::printCompound | ( | H5::DataSet & | dataset, |
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Prints a compound object.
dataset | reference to a opened dataset. |
prefix | keyword for the output prefix for each memeber of the compound. |
out | Stream to print to. |
Definition at line 620 of file ossimH5Util.cpp.
References getDatatypeClassType(), printArrayType(), printEnumType(), printFloatType(), printIntType(), printStrType(), and size.
Referenced by printObject().
void ossim_hdf5::printEnumType | ( | H5::DataSet & | dataset, |
H5::EnumType & | dataType, | ||
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
void ossim_hdf5::printFloatType | ( | H5::DataSet & | dataset, |
H5::FloatType & | dataType, | ||
const char * | dataPtr, | ||
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Definition at line 405 of file ossimH5Util.cpp.
References ossim::byteOrder(), getByteOrder(), ossimEndian::swap(), and ossimString::toString().
Referenced by printCompound().
void ossim_hdf5::printIntType | ( | H5::DataSet & | dataset, |
H5::IntType & | dataType, | ||
const char * | dataPtr, | ||
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Definition at line 310 of file ossimH5Util.cpp.
References ossim::byteOrder(), getByteOrder(), getScalarType(), ossim::isSigned(), OSSIM_SINT16, OSSIM_SINT32, OSSIM_SINT64, OSSIM_SINT8, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT64, OSSIM_UINT8, ossimEndian::swap(), and ossimString::toString().
Referenced by printCompound().
void ossim_hdf5::printIterative | ( | H5::H5File * | file, |
const std::string & | groupName, | ||
const std::string & | prefix, | ||
ossim_uint32 & | recursedCount, | ||
std::ostream & | out | ||
) |
Iterative print method.
file | Pointer to H5File instance. |
prefix | to start the walk with. |
recursedCount | Callers should start at zero. This is used internally to avoid an infinite loop as this method recursively calls itself. |
out | Stream to print to. |
Definition at line 79 of file ossimH5Util.cpp.
References combine(), ossimH5Options::instance(), ossimNotify(), ossimNotifyLevel_WARN, printAttribute(), and printObject().
Referenced by print().
void ossim_hdf5::printObject | ( | H5::H5File * | file, |
const std::string & | objectName, | ||
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Prints an object.
file | Pointer to H5File instance. |
prefix | to start the walk with. |
recursedCount | Callers should start at zero. This is used internally to avoid an infinite loop as this method recursively calls itself. |
out | Stream to print to. |
Definition at line 161 of file ossimH5Util.cpp.
References ossimKeywordNames::BYTE_ORDER_KW, ossim::byteOrder(), getByteOrder(), getDatatypeClassType(), ossimLookUpTable::getEntryString(), getExtents(), getScalarType(), ossimScalarTypeLut::instance(), ossim::isSigned(), OSSIM_BIG_ENDIAN, OSSIM_SCALAR_UNKNOWN, printAttribute(), printCompound(), printEnumType(), ossimKeywordNames::SCALAR_TYPE_KW, ossim::scalarSizeInBytes(), ossimString::string(), and ossimString::toString().
Referenced by printIterative().
void ossim_hdf5::printStrType | ( | H5::DataSet & | dataset, |
H5::StrType & | dataType, | ||
const char * | dataPtr, | ||
const std::string & | prefix, | ||
std::ostream & | out | ||
) |
Definition at line 436 of file ossimH5Util.cpp.
Referenced by printCompound().