How to output dem/dsm results in docker

The question is as following

How did you install ODM? (Docker, natively, …)?

Docker

What’s your browser and operating system?

Linux version 4.4.0-139-generic ([email protected]) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) ) #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018

What is the problem?

show as https://docs.opendronemap.org/using.html
in native

python run.py --images </path/to/images> [arguments]

and add ‘–dem’ ‘–dsm’ in arguments could have results
but how to output dem/dsm results in docker?

What should be the expected behavior?

Such as

sudo docker run -it --rm
-v $(pwd)/images:/code/images
-v $(pwd)/odm_meshing:/code/odm_meshing
-v $(pwd)/odm_orthophoto:/code/odm_orthophoto
-v $(pwd)/odm_georeferencing:/code/odm_georeferencing
-v $(pwd)/odm_texturing:/code/odm_texturing
-v $(pwd)/opensfm:/code/opensfm
-v $(pwd)/pmvs:/code/pmvs
opendronemap/opendronemap

How to insert dem&dsm command in docker command

ODM store dsm and dtm in a folder named odm_dem.

So you can map that docker folder to native directory to access dsm and dtm’s.

eg: add - -v “$(pwd)/odm_dem:/code/odm_dem” \ in below command and pass --dsm argument

docker run -it --rm \
    -v "$(pwd)/images:/code/images" \
    -v "$(pwd)/odm_georeferencing:/code/odm_georeferencing" \
    -v "$(pwd)/odm_meshing:/code/odm_meshing" \
    -v "$(pwd)/odm_orthophoto:/code/odm_orthophoto" \
    -v "$(pwd)/odm_texturing:/code/odm_texturing" \
    -v "$(pwd)/opensfm:/code/opensfm" \
    opendronemap/odm --dsm
3 Likes

Thank you !!!
Output ‘dsm’ result worked.
But ‘dem’ is recently not able? Right?

You can get dsm(Digital Surface Model) and dtm(Digital Terrain Model).

For dsm add “–dsm”, for dtm add ‘–dtm’ arguments.

I think dem stands for Digital Elevation model and both dsm and dtm come under dem’s?

Correct. The dem settings are global settings (e.g. resolution) for the elevation products (digital terrain and digital surface models).

Hi,

Running the command:
docker run -it --rm -v “$(pwd)/images:/code/images” -v “$(pwd)/odm_georeferencing:/code/odm_georeferencing” -v “$(pwd)/odm_meshing:/code/odm_meshing” -v “$(pwd)/odm_orthophoto:/code/odm_orthophoto” -v “$(pwd)/odm_texturing:/code/odm_texturing” -v “$(pwd)/opensfm:/code/opensfm” opendronemap/odm --dsm --dtm

I should get a folder called dsm and dtm with the results for the elevation models, correct?

There was so error message, but also no dsm and dtm.

Where can I find the logs to try to find what happened?

Apologies if these questions are newbie questions…
Regards,
António

U need to map the another folder :

add - -v “$(pwd)/odm_dem:/code/odm_dem”