Re: [gdal-dev] Idea: support JP2 TLM as sidecar in GDAL/OpenJPEG

2024-12-18 Thread Jérémy Anger via gdal-dev
> So you would have a XML file that would point > to the beginning of the .jp2 file, then an auxiliary file with the TLM > marker, and then the rest of the .jp2 file, and then you open > /vsisparse/my_patched_jp2.xml . I believe that should work because there > are no absolute offsets in JP2 files.

Re: [gdal-dev] Idea: support JP2 TLM as sidecar in GDAL/OpenJPEG

2024-12-13 Thread Even Rouault via gdal-dev
If you are not against the .tlm sidecar idea in GDAL/OpenJPEG, that's good enough for me for now, and it might allow further discussions with ESA. Well, you should tell them I'm actively *against* the sidecar idea to motivate them doing the proper thing, otherwise they'll have little inc

Re: [gdal-dev] Idea: support JP2 TLM as sidecar in GDAL/OpenJPEG

2024-12-13 Thread Jérémy Anger via gdal-dev
Yes, enabling TLM generation for future products would already be an important first step, and we have asked ESA about this recently. Given that the full archive of Sentinel-2 was reprocessed recently (Collection-1), we can assume that we won't get a full reprocessing before a few years, which is w

Re: [gdal-dev] Idea: support JP2 TLM as sidecar in GDAL/OpenJPEG

2024-12-13 Thread Even Rouault via gdal-dev
Hi, Someone should just tell the team at ESA (are you reading us ESA by the way?) in charge of producing those JPEG2000 files to turn on the Kakadu switch to generate TLM markers. A 5 minute change on their side, ok maybe 1 hour to update unit tests. What you suggest about sidecar .tlm sidec

[gdal-dev] Idea: support JP2 TLM as sidecar in GDAL/OpenJPEG

2024-12-13 Thread Jérémy Anger via gdal-dev
Dear GDAL maintainers, Thank you for the release of OpenJPEG 2.5.3, with the support of TLM markers! Following up on [1], Sentinel-2 JP2 files currently do not have TLM markers. However, it is theoretically possible to generate an external index file for each JP2 raster, and the index could be for