Page 1 of 1

Coordinate Shift when exporting raster as GeoTIFF

Posted: Fri Feb 18, 2022 11:02 am
by honi
The raster image appears to be shifted compared to GeoTIFFs created with other programs. The shift is approximately 0.5*sqrt(2)*grid-step of the raster (half of a diagonal) in south-east direction.

Used procedure:
Tools/Projection/Rasterize --> Update grid --> Export/Raster --> Export heights/OK

In my eyes the problem is that the upper-left corner of each pixel sits exactly on the calculated raster point. This results in a slight shift of location. Instead, the middle of each pixel should align with the raster points.

Re: Coordinate Shift when exporting raster as GeoTIFF

Posted: Sat Feb 19, 2022 2:51 pm
by daniel
Ok, I think I've found the bug!

I've added some more explanations on the wiki so as to not see it come back again: https://www.cloudcompare.org/doc/wiki/i ... d_position

I'll update the 2.12.beta online version as soon as possible.

Re: Coordinate Shift when exporting raster as GeoTIFF

Posted: Sun Feb 20, 2022 3:47 pm
by daniel
Ok, the fixed version is now online.

Thanks for the feedback!

Re: Coordinate Shift when exporting raster as GeoTIFF

Posted: Mon Feb 21, 2022 8:22 am
by honi
Thanks for the quick response!

Re: Coordinate Shift when exporting raster as GeoTIFF

Posted: Tue Feb 21, 2023 8:49 pm
by KyleGardner
Hi, I have just started to use CC recently and I have noticed that this issue is still appearing in the exported raster data. The larger the grid step size the further the exported geotiff moves to the south east. If I select a grid size of just 1, the exported raster is geo located perfectly.

Re: Coordinate Shift when exporting raster as GeoTIFF

Posted: Thu Feb 23, 2023 10:08 pm
by daniel
Which version are you using?

I've tested with the latest 2.13.alpha version (and QGis) and I was not able to reproduce it.