Skip to content

Parse optical metadata from geom

Cédric Traizet requested to merge optical_imi_geom into develop


In !765 (merged) the parsing of optical metadata from raw products has been refactored to use the new metadata framework introduced in !707 (merged). To ensure backward compatibility, OTB should also be able to read metadata from geom files. Generic metadata parsing from geom has been added in !759 (merged), but metadata specific to optical products were not parsed in the ImageMetadataInterface classes.

This Merge Request adds parsing from geom in optical products.

Other changes:

  • The signature of the Parse method of ImageMetadataInterfaceBase has been changed to use const reference instead of pointer:
virtual void ImageMetadataInterfaceBase::Parse(const MetadataSupplierInterface & mds)


One test per product has been added. The metadata from a product is compared with the metadata read from a geom file using the --compare-metadata utility refactored in !763 (merged)


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 | -p1 -i on latest changes and commit
Edited by Cédric Traizet

Merge request reports