Importing GeoTIFF results in a rotated image

Hello all,
hopefully a very simple question, with a simple solution:
I would like to import some GeoTIFFs to build my 3D model based on.
But after the import the image looks slightly rotated and no longer parallel to the X and Y axes.
Can someone expain me why?
When I import the same GeoTIFF with the mapping toolbox the result looks like expected:
I assume it has something to do with projection or World Origin. But I can't identify it.
Thx in advance,
Tim

8 Commenti

Check the dimensions of data from each method; I suspect the following possibilites.
  1. The mapping toolbox would have cropped the unwanted data (nan's present)
  2. The mapping toolbox would have filled the nan's.
I don't know if I'm understanding you correctly, but I checked the GeoTIFF data and there doesn't seem to be a NaN in any dimension.
Check the borders of the first image.
also I imported the GeoTiff to CloudCompare.
Looks also as expected:
How are you doing the import and display of what looks slightly wrong?
RoadRunner says for the bounds in wgs84:
min: (49.8581, 7.61142)
max: (49.8592, 7.61312)
For the import:
I just copy the .tifs to the project asset and then dragNdrop it to the scene. The file includes the projection in it's header.
Could it be a problem that the GeoTIFFs are already referenced in UTM?
perhaps I was misunderstanding. I thought you were saying that when you used some particular part of MATLAB that the image came out odd but not when you used a different part of MATLAB.
But now it looks to me as if you are indicating that some tool outside of MATLAB is displaying oddly? If so then it might help to name the tool.
Oh sorry, I thought it was clear from the product tag that the tool is RoadRunner.
Matlab displays it correctly in my opinion.

Accedi per commentare.

Risposte (1)

Siraj
Siraj il 29 Lug 2024
Hi Tim,
I understand you want to import GeoTIFFs into RoadRunner, however after importing you're noticing that the image appears slightly rotated inside the boundaries.
This happens because, in RoadRunner, the image is reprojected into the scene's local meter space. By reprojecting the image, it remains accurate to its true world position, ensuring its information aligns correctly with other GIS data.
To validate this behavior, you can pick a point in the image in RoadRunner and use the Measurement Tool to find the latitude and longitude. Then, check the same point in Mapping Toolbox to confirm that the latitude and longitude match.
For more details, you can refer to the following answer provided by the MathWorks Support Team:
Hope this helps.

Prodotti

Release

R2021a

Richiesto:

il 4 Ago 2021

Risposto:

il 29 Lug 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by