Skip to content

Instantly share code, notes, and snippets.

@ThomasLengeling
Last active February 1, 2024 00:29
Show Gist options
  • Save ThomasLengeling/ea0f274092dd1359a2aa05bef824f9a0 to your computer and use it in GitHub Desktop.
Save ThomasLengeling/ea0f274092dd1359a2aa05bef824f9a0 to your computer and use it in GitHub Desktop.
Global Id handle?
for i, floor in enumerate(floors):
if i == 0:
# find global entity handle 1_D26_1
poly = floor['geometry_to_grid'].loc[floor['geometry_to_grid']['global_entity_handle'] == '1_D26_1'].copy()
# find the string that contains 1_D26_1 in floor_grid
other_poly = floor['floor_grid'].loc[floor['floor_grid']['global_entity_handle'].str.endswith('1_D26_1')].copy()
fig, ax = plt.subplots(figsize=(20,20))
poly.plot(ax=ax, color='red', edgecolor='black', linewidth=2, zorder=0)
other_poly.plot(ax=ax, color='green', edgecolor="black", linewidth=2, zorder=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment