Last active
February 1, 2024 00:29
-
-
Save ThomasLengeling/ea0f274092dd1359a2aa05bef824f9a0 to your computer and use it in GitHub Desktop.
Global Id handle?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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