Closed smathermather closed 7 months ago
Is it possible the coordinates are incorrect?
Edit: ah, I see this is a pseudo-dataset.
Currently the UTM zone is picked based on the location of the first GCP point, not on the GCP header (that's because not all GCPs will be in UTM, and we always pivot to a UTM system).
See get_utm_zone_and_hemisphere_from
.
This would apply even if it were a real dataset (but yeah: completely arbitrary choice here). However, the coordinates in that GCP file should place it in Kenya.
I'm a little confused though: the header is relevant to parse the meaning of the GCP values and thus the determination of appropriate UTM. We cannot discern the meaning of GCPs without parsing that header, and converting those values to lat/lon to pass to pass to a function to find UTMz zone, or am I misreading something?
Imagine a (real) scenario where images have no exif to parse, but GCPs are used where the coordinate system is typically local, not angular.
So, I assume the fix is a pull request parsing the header and with proj4, rewriting the get_utm_zone_and_hemisphere_from
to calculate appropriate UTM zone? That would generalize to non-UTM headers that undoubtedly have the same challenge.
I don't think this is bug, but rather the coordinates might just be incorrect?
706784 411645 0 1810 2184 IMG_4389.jpeg
Your Northing value in https://epsg.io/32736 places you in Antarctica:
https://epsg.io/map#srs=32736&x=706784&y=411645&z=1&layer=streets
I'm only off by an order of magnitude or so... . Closing.. :)
Just follow up, with correct coordinates (this time in a zone compatible with Korea) we get this beautiful result:
Possible bug: when my data are fed in UTM Zone 36, but ODM calculates 40S as my coordinate system somehow:
GCP as follows:
Images are GPS free, so the only cue for coordinate system should be the proj string in the GCP dataset, but somehow ODM is assigning a different UTM zone.
Image and GCP data here: https://github.com/smathermather/ioniq5/