Skip to content
Snippets Groups Projects

Resolve "Create the Geometry, Quadkey, RelationID and Floorspace rules"

Files
2
@@ -19,7 +19,9 @@ class StoriesAndFloorspaceRule:
from math import ceil
story_options = [self.get_info(building["tags"]) for building in [tags] + relations]
story_options = [
self.get_story_tag(building["tags"]) for building in [tags] + relations
]
for story_string in story_options:
if story_string is None or story_string == "":
@@ -35,7 +37,7 @@ class StoriesAndFloorspaceRule:
return {"stories": None, "floorspace": None}
@staticmethod
def get_info(tags):
def get_story_tag(tags):
"""
Get the number of stories, if the attribute `building:levels` exist
Loading