kopia lustrzana https://github.com/OpenDroneMap/WebODM
Removed old comment
rodzic
07a3ca3f2a
commit
f36571978c
|
@ -331,16 +331,14 @@ class Tiles(TaskNestedView):
|
||||||
# Try to find RGBA band order
|
# Try to find RGBA band order
|
||||||
if ColorInterp.red in ci and \
|
if ColorInterp.red in ci and \
|
||||||
ColorInterp.green in ci and \
|
ColorInterp.green in ci and \
|
||||||
ColorInterp.blue in ci: # and ColorInterp.alpha in ci:
|
ColorInterp.blue in ci:
|
||||||
indexes = (ci.index(ColorInterp.red) + 1,
|
indexes = (ci.index(ColorInterp.red) + 1,
|
||||||
ci.index(ColorInterp.green) + 1,
|
ci.index(ColorInterp.green) + 1,
|
||||||
ci.index(ColorInterp.blue) + 1,)
|
ci.index(ColorInterp.blue) + 1,)
|
||||||
# TODO: adding alpha band should fix black backgrounds
|
|
||||||
# but the tiles disappear. Probable bug in rasterio/GDAL
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Fallback to first four
|
# Fallback to first three
|
||||||
indexes = (1, 2, 3, ) # , 4, )
|
indexes = (1, 2, 3, )
|
||||||
|
|
||||||
elif has_alpha:
|
elif has_alpha:
|
||||||
indexes = non_alpha_indexes(src)
|
indexes = non_alpha_indexes(src)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue