You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to add text segments to a NITF file which works as expected when not appending a subdataset.
If I add a subdataset the TEXT segments are added with empty values.
Steps to reproduce the issue
gdal_translate input.nitf output.nitf -ot Byte TEXT=HEADER_0={data} -co TEXT=DATA_0={data} -> Text Segments set as expected
gdal_translate input.nitf output.nitf -ot Byte TEXT=HEADER_0={data} -co TEXT=DATA_0={data} -co NUMI=2 -> Text Segments have empty values
Metadata (TEXT):
DATA_0=
HEADER_0=
If I attempt to add the TEXT segment to the LAST appended dataset. I get the following error:
Note the output NITF currently does not have text segments as they were removed during the first gdal_translate call to add the 1st image segment.
I expect to be able to add the TEXT segments like I do the TREs when going through the APPEND_DATASET flow.
Versions and provenance
Windows/Linux
3.10
Additional context
No response
The text was updated successfully, but these errors were encountered:
What is the bug?
I am attempting to add text segments to a NITF file which works as expected when not appending a subdataset.
If I add a subdataset the TEXT segments are added with empty values.
Steps to reproduce the issue
gdal_translate input.nitf output.nitf -ot Byte TEXT=HEADER_0={data} -co TEXT=DATA_0={data} -> Text Segments set as expected
gdal_translate input.nitf output.nitf -ot Byte TEXT=HEADER_0={data} -co TEXT=DATA_0={data} -co NUMI=2 -> Text Segments have empty values
Metadata (TEXT):
DATA_0=
HEADER_0=
If I attempt to add the TEXT segment to the LAST appended dataset. I get the following error:
Note the output NITF currently does not have text segments as they were removed during the first gdal_translate call to add the 1st image segment.
I expect to be able to add the TEXT segments like I do the TREs when going through the APPEND_DATASET flow.
Versions and provenance
Windows/Linux
3.10
Additional context
No response
The text was updated successfully, but these errors were encountered: