From 5c4dadcf5e89f94ec8b8d7ec4f9b0156068a8564 Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 9 Oct 2022 14:51:38 +0200 Subject: [PATCH] Fixed building:levels bug --- src/processData.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/processData.py b/src/processData.py index 22225c4..a8acbd6 100644 --- a/src/processData.py +++ b/src/processData.py @@ -159,11 +159,11 @@ def processData(data, args): if ( "building:levels" in element["tags"] - and int(element["tags"]["building:levels"]) <= 8 - and int(element["tags"]["building:levels"]) >= 1 + and int(float(element["tags"]["building:levels"])) <= 8 + and int(float(element["tags"]["building:levels"])) >= 1 ): buildingHeight = str( - int(element["tags"]["building:levels"]) - 1 + int(float(element["tags"]["building:levels"])) - 1 ) for i in bresenham(