GridBasedResampling y origin weird behaviour
When using GridBasedResampling an half pixel shift occurs between user specified value in command and output image, for example :
- user UL : [311000.0, 58818000.000] with spacing [0.5,-0.5] gives an output with origin at [310999.75, 58818000.25]
if we try to compensate that by shifting by an half spacing the input
- user UL : [311000.25, 58817999.75] with spacing [0.5,-0.5] gives an output with origin at [311000.00, 58818000.25]
- user UL : [311000.25, 58817999.74] with spacing [0.5,-0.5] gives an output with origin at [311000.00, 58817999.75]
only N*spacing + spacing/2 ULY seems to be reachable with a spacing set to 0.5
This problem doesn't occur with 5.0 spacing
OTB version : 8.1.0 (same problem with OTB 7.4)