Skip to content

Wrong origin of output image when ?&box is used in extended filename

Description

The origin of the output image is wrong when the extended filename ?&box= is used.

Steps to reproduce

otbcli_Convert -in /homeL/cresson/data/ms_07_roi.tif -type log2 -out "/tmp/toto.tif?&box=1000:1000:1000:1000" uint8 Leads to a shifted image.

Configuration information

develop branch of OTB

proposed fix & discussion

I made a quick fix in the branch bugfix_writer_box but this must be reviewed. I guess this was related to the "SignedSpacingGate". Don't we have some unit test for this?