kopia lustrzana https://github.com/OpenDroneMap/WebODM
Textured mesh download option
rodzic
835c2dc105
commit
a907f2f7c2
|
@ -427,9 +427,9 @@ class Task(models.Model):
|
|||
raise FileNotFoundError("{} does not exist".format(textured_mesh_directory))
|
||||
|
||||
if not os.path.exists(archive_path):
|
||||
shutil.make_archive(archive_path, 'zip', textured_mesh_directory)
|
||||
else:
|
||||
return archive_path
|
||||
shutil.make_archive(os.path.splitext(archive_path)[0], 'zip', textured_mesh_directory)
|
||||
|
||||
return archive_path
|
||||
|
||||
def delete(self, using=None, keep_parents=False):
|
||||
directory_to_delete = os.path.join(settings.MEDIA_ROOT,
|
||||
|
|
|
@ -32,6 +32,7 @@ const api = {
|
|||
all: function() {
|
||||
return [
|
||||
new AssetDownload("GeoTIFF","geotiff","fa fa-map-o"),
|
||||
new AssetDownload("Textured Mesh","texturedmesh","fa fa-connectdevelop"),
|
||||
new AssetDownload("LAS","las","fa fa-cube"),
|
||||
new AssetDownload("PLY","ply","fa fa-cube"),
|
||||
new AssetDownload("CSV","csv","fa fa-cube"),
|
||||
|
|
|
@ -115,6 +115,7 @@ Asset | Description
|
|||
----- | -----------
|
||||
all | Archive (.zip) containing all assets, including an orthophoto, TMS tiles, a textured 3D model and point cloud in various formats.
|
||||
geotiff | GeoTIFF orthophoto.
|
||||
texturedmesh | Archive (.zip) containing the textured 3D model
|
||||
las | Point cloud in .LAS format.
|
||||
ply | Point cloud in .PLY format.
|
||||
csv | Point cloud in .CSV format.
|
||||
|
|
Ładowanie…
Reference in New Issue