Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add text segments to NITF when appending subdatasets #10977

Open
chuck1987 opened this issue Oct 9, 2024 · 0 comments
Open

Unable to add text segments to NITF when appending subdatasets #10977

chuck1987 opened this issue Oct 9, 2024 · 0 comments

Comments

@chuck1987
Copy link

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:

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant