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 <br...@frogmouth.net> Wysłane: wtorek, 11 czerwca 2024 14:05:19 Do: Marek Setnik DW: gdal-dev@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@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
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev