Skip to content

Commit 05474e7

Browse files
committed
Fix csminit on GeoTiff in ISIS
1 parent 34b7600 commit 05474e7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

isis/src/base/objs/Cube/Cube.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,6 +2408,17 @@ namespace Isis {
24082408
* @return bool True if the BLOB was found
24092409
*/
24102410
bool Cube::hasBlob(const QString &name, const QString &type) {
2411+
if (gdalDataset()) {
2412+
string key = type.toStdString() + "_" + name.toStdString();
2413+
const char *jsonblobStr = gdalDataset()->GetMetadataItem(key.c_str(), "USGS");
2414+
2415+
if (jsonblobStr) {
2416+
return true;
2417+
}
2418+
2419+
return false;
2420+
}
2421+
24112422
for(int o = 0; o < label()->objects(); o++) {
24122423
PvlObject &obj = label()->object(o);
24132424
if (obj.isNamed(type)) {

0 commit comments

Comments
 (0)