From 8267fa548cd1936c946f06ebf23ffc0effc77fb3 Mon Sep 17 00:00:00 2001 From: Elizabeth Jane Wesley <23467296+elizabethjanewesley@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:19:12 -0400 Subject: [PATCH] Fix road buffer in smart_surface_lulc.py Fixed buffer to be half the desired width of the road --- city_metrix/layers/smart_surface_lulc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/city_metrix/layers/smart_surface_lulc.py b/city_metrix/layers/smart_surface_lulc.py index d58f468..2ab2a02 100644 --- a/city_metrix/layers/smart_surface_lulc.py +++ b/city_metrix/layers/smart_surface_lulc.py @@ -66,7 +66,7 @@ def get_data(self, bbox): # cap is flat to the terminus of the road # join style is mitred so intersections are squared roads_osm['geometry'] = roads_osm.apply(lambda row: row['geometry'].buffer( - row['lanes'] * 3.048, + row['lanes'] * 3.048 / 2, cap_style=CAP_STYLE.flat, join_style=JOIN_STYLE.mitre), axis=1