[gdal-dev] Odp.: Adding multiple TREs to a NITF using gdal_translate

Marek Setnik Marek.Setnik at obrum.pl
Tue Jun 11 05:17:38 PDT 2024


Oh, that's perfect actually, it did tell me that using TRE twice should work and it actually does. My error was that I had extra bytes at the end of my TREs, I removed those and now I've got all my TREs showing up, so thank you!

________________________________
Od: Brad Hards <bradh at frogmouth.net>
Wysłane: wtorek, 11 czerwca 2024 14:05:19
Do: Marek Setnik
DW: gdal-dev at lists.osgeo.org
Temat: Re: [gdal-dev] Adding multiple TREs to a NITF using gdal_translate

Not quite what you asked for, but https://github.com/OSGeo/gdal/blob/master/autotest/gdrivers/nitf.py#L2101 might be another way to achieve what you need. Otherwise,  some more details on exact TREs might be relevant.

On 11 June 2024 8:11 pm, Marek Setnik via gdal-dev <gdal-dev at lists.osgeo.org> wrote:

Hello!

I'm having trouble with adding multiple TREs to a NITF file (using C++ API), the documentation mentions that the TRE creation options allows for that but I can't figure out the syntax, how do I achieve something like this: TRE=NAME1=VALUES1,NAME2=VALUES2 ? (I also tried to use TRE creation option twice like so: -co TRE=NAME1=VALUES1 -co TRE=NAME2=VALUES2, but the second TRE gets ignored)


Thanks in advance!

Marek


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240611/f24bddb7/attachment.htm>


More information about the gdal-dev mailing list