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 by Novius