<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I have created an image with multiple subdatasets so that I may store two images in my NITF. the way I am getting the data set of the second image is like so:<br>
<br>
char **papszSubdatasets = GDALGetMetadata(sharpenedDS,"SUBDATASETS");<br>
eraserDS = (GDALDataset *) GDALOpenShared(CSLFetchNameValue(papszSubdatasets, "SUBDATASET_2_NAME") , GA_ReadOnly );<br>
eraserBand = eraserDS->GetRasterBand(1);<br>
<br>
(this is after checking to make sure that the first DS has more than one subdataset)<br>
<br>
According to CPL_DEBUG, the GDALOpenShared works correctly and opens the file as NITF.<br>
<br>
However, at some points in my code, I am getting this thrown to console presumably where I am using the band's RasterIO method to GF_Write.<br>
<br>
ERROR 3: Unable to write 2097152 byte block from 8302649793.<br>
ERROR 1: An error occured while writing a dirty block<br>
<br>
What do these error messages mean? I mam getting a ton of them. the block is the same number of bytes, but the "from" changes in each instance of the error.<br>
</div>
</body>
</html>