Index: src/python/bin/gnuboat-log-analyser
===================================================================
--- src/python/bin/gnuboat-log-analyser	(revision 26d66d8d3e5de36d2650366c0ef905dcf07af09e)
+++ src/python/bin/gnuboat-log-analyser	(revision 403e4ed9d9ea958f4a7e04cd8317d86a9ab14b7e)
@@ -243,21 +243,20 @@
 		for depth in colors:
 			color_config.write("{} {}\n".format(depth, colors[depth]))
-	gdal.DEMProcessing(gdal_file_color_relief, gdal_file, "color-relief", options = gdal.DEMProcessingOptions(format = "GTiff", colorFilename = gdal_file_color_relief_config))
+	gdal.DEMProcessing(gdal_file_color_relief, gdal_file, "color-relief", options = gdal.DEMProcessingOptions(format = "GTiff", colorFilename = gdal_file_color_relief_config), addAlpha = True)
 	print("  Created color relief in {}".format(gdal_file_color_relief))
 	
 	# slopeshade
-	gdal_file_slope_shade_tmp = "/vsimem/tmp_water_depth_slope_shade.tif"
-	gdal_file_slope_shade = os.path.join(output_directory, "water_depth_slope_shade.tif")
-	gdal_file_slope_shade_config = os.path.join(output_directory, "tmp_water_depth_slope_shade_config.txt")
-	with open(gdal_file_slope_shade_config, 'w') as shade_config:
+	gdal_file_slopeshade_tmp = "/vsimem/tmp_water_depth_slopeshade.tif"
+	gdal_file_slopeshade_config = os.path.join(output_directory, "tmp_water_depth_slopeshade_config.txt")
+	with open(gdal_file_slopeshade_config, 'w') as shade_config:
 		shade_config.write("0 255 255 255\n")
 		shade_config.write("90 0 0 0\n")
-	gdal.DEMProcessing(gdal_file_slope_shade_tmp, gdal_file, "slope", options = gdal.DEMProcessingOptions(format = "GTiff"))
-	gdal.DEMProcessing(gdal_file_slope_shade, gdal_file_slope_shade_tmp, "color-relief", options = gdal.DEMProcessingOptions(format = "GTiff", colorFilename = gdal_file_slope_shade_config))
-	print("  Created slope shade in {}".format(gdal_file_slope_shade))
+	gdal.DEMProcessing(gdal_file_slopeshade_tmp, gdal_file, "slope", options = gdal.DEMProcessingOptions(format = "GTiff"), slopeFormat = 'degree', zeroForFlat = True, addAlpha = True)
+	gdal.DEMProcessing(gdal_file_slopeshade, gdal_file_slopeshade_tmp, "color-relief", options = gdal.DEMProcessingOptions(format = "GTiff", colorFilename = gdal_file_slopeshade_config), addAlpha = True)
+	print("  Created slope shade in {}".format(gdal_file_slopeshade))
 	
 	
 	# generate contour lines
-	# @todo not useful in this configuration!
+	# @todo Cut Tifs / warp
 	contour_input = gdal.Open(gdal_file, gdalconst.GA_ReadOnly)
 	contour_input_band = contour_input.GetRasterBand(1)
@@ -276,4 +275,10 @@
 	contour_output = None
 	del contour_output
+	
+	#overlaid = gdal.Warp(gdal_file_slopeshade, [color_relief, hillshade], format='GTiff')
+	##gdal.Translate(gdal_file_slopeshade, overlaid, creationOptions=['compress=LZW', 'alpha=yes'])
+	#gdal.Translate(gdal_file_slopeshade, overlaid, creationOptions=['alpha=yes'])
+	gdal.Warp('/tmp/gnuboat/test.tif', gdal_file_color_relief, options = gdal.WarpOptions(format = 'GTiff', dstAlpha = True, cutlineDSName = '/tmp/gnuboat/contours/contour-0.shp'))
+	#gdal.Warp('/tmp/gnuboat/test.tif', gdal_file_color_relief, options = gdal.WarpOptions(format = 'GTiff', dstAlpha = True))
 
 	# generate tiles
@@ -285,5 +290,5 @@
 		{"file": gdal_file_color_relief, "title": 'Color relief', "output": 'color_relief'},
 		#slopeshade
-		{"file": gdal_file_slope_shade, "title": 'Slopeshade', "output": 'slopeshade'}
+		{"file": gdal_file_slopeshade, "title": 'Slopeshade', "output": 'slopeshade'}
 	]
 	print("Expanding {} tifs to tiles".format(len(tile_commands)))
