OpenDroneMap / ODM

A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
https://opendronemap.org
GNU Affero General Public License v3.0
4.69k stars 1.07k forks source link

Feature Request: Write out sidecars for Georeferenceable OBJ #1272

Closed Saijin-Naib closed 3 years ago

Saijin-Naib commented 3 years ago

How did you install OpenDroneMap? (Docker, natively, ...)?

N/A

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

N/A

What is the problem?

The Wavefront OBJ file format has no concept of CRS and works instead in a local coordinate system (0,0,0). This can present difficulties where people expect to be able to load the model in its proper location.

What should be the expected behavior? If this is a feature request, please describe in detail the changes you think should be made to the code, citing files and lines where changes should be made, if possible.

Pix4D approaches this limitation of the OBJ format by writing an XYZ offset file in their processing pipeline, along with a PRJ file that defines the projection that the offset applies to. It then is the onus of the ingesting software to take advantage of these offset/spatial reference files to properly locate the OBJ.

https://support.pix4d.com/hc/en-us/articles/204606535-How-to-visualize-the-3D-textured-mesh-with-georeference

How can we reproduce this? (What steps did you do to trigger the problem? What parameters are you using for processing? If possible please include a copy of your dataset uploaded on Google Drive or Dropbox. Be detailed)

Try to geolocate any OBJ file generated by ODM.

pierotofy commented 3 years ago

Well, we already do this; the information is in odm_georeferencing/odm_georeferencing_model_geo.txt. Are there tools that expect the offset in a particular format matching that of Pix4D?

Saijin-Naib commented 3 years ago

Well, we already do this; the information is in odm_georeferencing/odm_georeferencing_model_geo.txt. Are there tools that expect the offset in a particular format matching that of Pix4D? I thought that's what that file was for...

I'm not entirely certain yet what tools would expect it in that split xyz/prj format. I'm trying to assist a user on the forum in this issue (https://community.opendronemap.org/t/upload-webodm-output-to-arcgis-pro/7383/13?u=saijin_naib) and this is all new to me.

The xyz/prj stuff smacks of ESRI, though. Unfortunately, I lack the license/extensions to do any testing of that workflow.

pierotofy commented 3 years ago

Ah, I see; OBJ files don't have a (standard) way to specify coordinate systems / location information. If we can identify tools that use a particular convention we could consider adopting it. But until then, it's up to users to specify that information in whatever program they use.