IS-AgroSmart / AgroSmart-Web

1 stars 1 forks source link

Generate DTM (ground only) #102

Closed jreyesr closed 3 years ago

jreyesr commented 3 years ago

NodeODM currently only generates a DSM (Digital Surface Model, ground + objects). It should also generate a DTM (Digital Terrain Model, ground only).

Change should be easy, by adding a new key-value pair with "dtm": True on the line below: https://github.com/IS-AgroSmart/AgroSmart-Web/blob/dff8fd4fec2cde74e73c6efd3f408ad60bfa6ea2/core/models.py#L412

Also add a download button on the UI (after the DSM TIF button) which links to /dtm.tif https://github.com/IS-AgroSmart/AgroSmart-Web/blob/dff8fd4fec2cde74e73c6efd3f408ad60bfa6ea2/frontend/src/components/FlightResults.vue#L30-L32 and the necessary handler on the download_artifact view (just below dsm.tif) https://github.com/IS-AgroSmart/AgroSmart-Web/blob/dff8fd4fec2cde74e73c6efd3f408ad60bfa6ea2/core/views.py#L317-L318