<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Copying text segment header for the NITF driver</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT FACE="Times New Roman">Hi,</FONT>

<BR><FONT FACE="Times New Roman">I noticed that the current GDAL NITF driver does not copy text header when CreateCopy is performed. So I updated the driver code to perform the copying.&nbsp; However, the approach I took adds some additional data to the dataset&#8217;s metadata.&nbsp; I want to check to see if this is ok before I open a Trac ticket to submit my changes.</FONT></P>

<P><FONT FACE="Times New Roman">NITF Text Domain Before:</FONT>

<BR><FONT FACE="Times New Roman">DATA_0=This is test text file 01.</FONT>

<BR><FONT FACE="Times New Roman">DATA_1=This is test text file 02.</FONT>
</P>

<P><FONT FACE="Times New Roman">NITF Text Domain Now:</FONT>

<BR><FONT FACE="Times New Roman">DATA_0=This is test text file 01.</FONT>

<BR><FONT FACE="Times New Roman">HEADER_0=TEXT00000020090407185409SOMETITLE_1...</FONT>

<BR><FONT FACE="Times New Roman">DATA_1=This is test text file 02.</FONT>

<BR><FONT FACE="Times New Roman">HEADER_1=TEXT00000020090408185409SOMETITLE_2...</FONT>
</P>

<P><FONT FACE="Times New Roman">Implementation Notes:</FONT>
<UL>
<OL TYPE=1>
<LI><FONT FACE="Times New Roman">The &quot;HEADER_&quot; metadata contains the whole header in unparsed form.</FONT></LI>

<LI><FONT FACE="Times New Roman">The header data has to be stored somewhere in the dataset so I can read it back when writing it.&nbsp; I am open to suggestion for putting the data somewhere else.</FONT></LI>
<BR>
</OL></UL>
<P><FONT FACE="Times New Roman">&nbsp;Let me know if this is ok.</FONT>
</P>

<P><FONT FACE="Times New Roman">-Kevin Chiou</FONT>
</P>

</BODY>
</HTML>