Coordinate Shift when exporting raster as GeoTIFF

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
honi
Posts: 2
Joined: Fri Feb 18, 2022 10:33 am

Coordinate Shift when exporting raster as GeoTIFF

Post 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.
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Coordinate Shift when exporting raster as GeoTIFF

Post 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.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Coordinate Shift when exporting raster as GeoTIFF

Post by daniel »

Ok, the fixed version is now online.

Thanks for the feedback!
Daniel, CloudCompare admin
honi
Posts: 2
Joined: Fri Feb 18, 2022 10:33 am

Re: Coordinate Shift when exporting raster as GeoTIFF

Post by honi »

Thanks for the quick response!
KyleGardner
Posts: 1
Joined: Tue Feb 21, 2023 8:44 pm

Re: Coordinate Shift when exporting raster as GeoTIFF

Post 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.
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Coordinate Shift when exporting raster as GeoTIFF

Post 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.
Daniel, CloudCompare admin
Post Reply