[GEOT-4838] Add support for advanced projection handling on raster data

Commented code: is it here for quick tests/debug or can it be removed?