Skip to content

Commit

Permalink
make edges of buildings thinner
Browse files Browse the repository at this point in the history
  • Loading branch information
alikeshk committed Dec 16, 2024
1 parent 351b8a8 commit 080321c
Show file tree
Hide file tree
Showing 2 changed files with 487 additions and 243 deletions.
7 changes: 5 additions & 2 deletions Generate_GeoJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

normalized_original_data_df['properties.departments'] = [[] for _ in range(len(normalized_original_data_df))]
normalized_original_data_df['properties.fill'] = ["#808080" for _ in range(len(normalized_original_data_df))]
normalized_original_data_df['properties.stroke-width'] = [0.5 for _ in range(len(normalized_original_data_df))]

for i in range(0, len(updated_departments_df)):
for j in range(0, len(normalized_original_data_df)):
Expand All @@ -30,11 +31,13 @@
"location": row["properties.location"],
"id": row["properties.id"],
"departments": row["properties.departments"],
"fill": row["properties.fill"]
"fill": row["properties.fill"],
"stroke-width": row["properties.stroke-width"]
}, axis=1)

normalized_original_data_df = normalized_original_data_df.drop(columns=["properties.bldg_no", "properties.ABBREV", "properties.NAME",
"properties.Address", "properties.CAMPUS", "properties.location",
"properties.id", "properties.departments", "properties.fill"])
"properties.id", "properties.departments", "properties.fill", "properties.stroke-width"])

normalized_original_data_df["geometry"] = normalized_original_data_df.apply(lambda row: {"type": row["geometry.type"], "coordinates": row["geometry.coordinates"]}, axis=1)

Expand Down
Loading

0 comments on commit 080321c

Please sign in to comment.