Textured mesh download option

pull/116/head
Piero Toffanin 2017-03-08 10:16:46 -05:00
rodzic 835c2dc105
commit a907f2f7c2
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -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,

Wyświetl plik

@ -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"),

Wyświetl plik

@ -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.