Opened 14 years ago

Closed 14 years ago

#3285 closed enhancement (duplicate)

Update NITF dirver code to copy text segment header information

Reported by: thchiou Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords: NITF
Cc:

Description

Current NITF driver does not copy over NITF text header data when CreateCopy() is used. NITF driver populate the header with some default values right now. I have attached the updated NITF driver code that performs the copying of text header. The main change from user's perspective is now the "TEXT" domain will contain an entry "HEADER_x," corresponding to each of the "Data_x" entry.

For example new NITF text domain will look like this:
DATA_0=This is test text file 01.
HEADER_0=TEXT00000020090407185409SOMETITLE_1...
DATA_1=This is test text file 02.
HEADER_1=TEXT00000020090408185409SOMETITLE_2...

Attached is the updated code for "/frmts/nitf/nitfdataset.cpp"

Let me know if you have any question: kchiou@…

Attachments (2)

nitfdataset_bug_submit.cpp (168.2 KB ) - added by thchiou 14 years ago.
udpated /frmts/nitf/nitfdataset.cpp for text header copying
nitfdataset.diff (9.0 KB ) - added by thchiou 14 years ago.
diff file

Download all attachments as: .zip

Change History (4)

by thchiou, 14 years ago

Attachment: nitfdataset_bug_submit.cpp added

udpated /frmts/nitf/nitfdataset.cpp for text header copying

by thchiou, 14 years ago

Attachment: nitfdataset.diff added

diff file

comment:1 by thchiou, 14 years ago

I opened another ticket, ticket:3376, that include the changes for this ticket.

comment:2 by Even Rouault, 14 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #3376

Note: See TracTickets for help on using tickets.