Merge pull request #907 from pierotofy/csrffix

Fix sequoia plant health view
pull/916/head
Piero Toffanin 2020-09-03 15:49:06 -04:00 zatwierdzone przez GitHub
commit 7284f8d50f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -170,7 +170,7 @@ class Metadata(TaskNestedView):
nodata = None
# Workaround for https://github.com/OpenDroneMap/WebODM/issues/894
if band_count > 4:
if tile_type == 'orthophoto':
nodata = 0
info = main.metadata(src, pmin=pmin, pmax=pmax, histogram_bins=255, histogram_range=hrange, expr=expr, nodata=nodata)
@ -347,7 +347,7 @@ class Tiles(TaskNestedView):
indexes = non_alpha_indexes(src)
# Workaround for https://github.com/OpenDroneMap/WebODM/issues/894
if nodata is None and src.meta['count'] > 4:
if nodata is None and tile_type =='orthophoto':
nodata = 0
resampling="nearest"

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "WebODM",
"version": "1.4.2",
"version": "1.4.3",
"description": "User-friendly, extendable application and API for processing aerial imagery.",
"main": "index.js",
"scripts": {