Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 207
    • Issues 207
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #2275
Closed
Open
Issue created Apr 15, 2022 by Novius@EnlNovius

8.0.0 otbcli_OrthoRectification does not read the metadata contained in the geotiff.

Hello,

It seems that otbcli_OrthoRectification cannot read the metadata contained in the geotiff files, it still needs a .geom which is no longer generated by most OTB scripts since the move to 8.0.0.

I use the following pipeline on Pléiades images, which works correctly in 7.4.0, but does not work anymore in 8.0.0, because the otbcli_BundleToPerfectSensor scripts do not generate the .geom anymore.

Pipeline:

$ otbcli_OpticalCalibration -in IMG_PHR1A_MS_002/IMG_PHR1A_MS_202112021049415_SEN_6074118101-2_R2C1.JP2 -level toc -out IMG_PHR1A_MS_002/IMG_PHR1A_MS_202112021049415_SEN_6074118101-2_R2C1_toc.tif
$ otbcli_BundleToPerfectSensor -inp IMG_PHR1A_P_001/IMG_PHR1A_P_202112021049415_SEN_6074118101-1_R2C1.JP2 -inxs IMG_PHR1A_MS_002/IMG_PHR1A_MS_202112021049415_SEN_6074118101-2_R2C1_toc.tif -mode phr -out IMG_PHR1A_PMS_202112021049415_SEN_6074118101-2_R2C1.tif
$ otbcli_OrthoRectification -elev.dem SRTM/ -elev.geoid egm96.grd -io.in IMG_PHR1A_PMS_202112021049415_SEN_6074118101-2_R2C1.tif -io.out IMG_PHR1A_PMS_202112021049415_SEN_6074118101-2_R2C1_ortho.tif
  • 7.4.0:
2022-04-15 14:31:53 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters
2022-04-15 14:31:53 (INFO): Loading kwl metadata from attached geom file IMG_PHR1A_PMS_202112021049415_SEN_6074118101-2_R2C1.geom
...
Writing IMG_PHR1A_PMS_202112021049415_SEN_6074118101-2_R2C1_ortho.tif...: 100% [**************************************************] (1m 05s)
  • 8.0.0:
2022-04-15 12:12:09 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters
2022-04-15 12:12:09 (INFO): Loading metadata from official product
2022-04-15 12:12:09 (FATAL) OrthoRectification: itk::ERROR: ImageToGenericRSOutputParameters(0xa592f0): No information in the metadata, please set an image with non empty metadata
Edited Apr 15, 2022 by Novius
Assignee
Assign to
Time tracking