Skip to content

Commit 1777b2b

Browse files
authored
Merge pull request #1699 from smathermather/add_cutline
Add cutline to downloadable assets when/if available
2 parents 36575c6 + 5d3a649 commit 1777b2b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/models/task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class Task(models.Model):
183183
'orthophoto.png': os.path.join('odm_orthophoto', 'odm_orthophoto.png'),
184184
'orthophoto.mbtiles': os.path.join('odm_orthophoto', 'odm_orthophoto.mbtiles'),
185185
'orthophoto.kmz': os.path.join('odm_orthophoto', 'odm_orthophoto.kmz'),
186+
'cutline.gpkg': os.path.join('odm_orthophoto', 'cutline.gpkg'),
186187
'georeferenced_model.las': os.path.join('odm_georeferencing', 'odm_georeferenced_model.las'),
187188
'georeferenced_model.laz': os.path.join('odm_georeferencing', 'odm_georeferenced_model.laz'),
188189
'georeferenced_model.ply': os.path.join('odm_georeferencing', 'odm_georeferenced_model.ply'),

app/static/app/js/classes/AssetDownloads.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const api = {
4646
new AssetDownload(_("Orthophoto"),"orthophoto.tif","far fa-image", tiffExportFormats),
4747
new AssetDownload(_("Orthophoto (MBTiles)"),"orthophoto.mbtiles","far fa-image"),
4848
new AssetDownload(_("Orthophoto (Tiles)"),"orthophoto_tiles.zip","fa fa-table"),
49+
new AssetDownload(_("Orthophoto Cutline"),"cutline.gpkg","fa fa-image"),
4950
new AssetDownload(_("Terrain Model"),"dtm.tif","fa fa-chart-area", tiffExportFormats, elevationExportParams),
5051
new AssetDownload(_("Terrain Model (Tiles)"),"dtm_tiles.zip","fa fa-table"),
5152
new AssetDownload(_("Surface Model"),"dsm.tif","fa fa-chart-area", tiffExportFormats, elevationExportParams),

0 commit comments

Comments
 (0)