From 86dfa3e3d9c95b8417d645f33a62bf81366c679d Mon Sep 17 00:00:00 2001 From: Raffaele Gaetano <raffaele.gaetano@cirad.fr> Date: Mon, 25 Jul 2022 09:39:37 +0200 Subject: [PATCH] FIX: Minor bug. --- VHR/segmentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VHR/segmentation.py b/VHR/segmentation.py index 9ea116c..1d23b8c 100644 --- a/VHR/segmentation.py +++ b/VHR/segmentation.py @@ -127,7 +127,7 @@ def lsgrm(input_image, params : LSGRMParams, out_seg, n_proc=None, memory=None, return out_seg def write_qgis_seg_style(out_file, line_color='255,255,0,255', line_width=0.46): - with open(out_file, 'wb') as f: + with open(out_file, 'w') as f: f.writelines( ["<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>", "<qgis styleCategories=\"Symbology\" version=\"3.14.1-Pi\">", -- GitLab