Skip to content

Reading the metadata from the geom files without OSSIM

Julien Osman requested to merge 2024_GeomMetadataSupplier into develop

Summary

Implement the classes to read GEOM files

Rationale

OSSIM is in charge of the interface with the geom files. As we remove OSSIM, we need a new interface. The new framework for the metadata will not need to write geom files, because it will use GDAL's ability to deal with metadata. So we only need to implement a geom file reader. See #2106 (closed).

Implementation Details

Classes and files

New class GeomMetadataSupplier

Modification of ImageFileReader, so it uses GeomMetadataSupplier when a GEOM file is present. It first tries to read a geom provided in the extended filename. If not found, it tries to read a GEOM file next to the image file. If not found, it uses GDAL to read the metadata stored in the image file. For now, this new metadata reading mechanism works in parallel to the former mechanism based on OSSIM and KeyWordLists. But the old mechanism will be removed with #2089 (closed).

Tests

A classical GEOM file is read and is written to a file. This file is then compared to an other file containing the expected result.

Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
  • Optionally, run git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i on latest changes and commit

Closes #2106 (closed)

Edited by Julien Osman

Merge request reports