gdf_relations = gdf_relations.append(geo)
// Remove such "ways" from "osm_way_df" that are part of the "relation"
osm_way_df = osm_way_df.drop(member_way_ids)
elif relation["type"] == "multiline":
print("TODO: multiline relation")
elif relation["type"] == "multipoint":
print("TODO: multipoint relation")
// Merge "osm_way_df" and the "gdf_relations"
osm_way_df = osm_way_df.append(gdf_relations)
return osm_way_df
After Change
// Remove such "ways" from "osm_way_df" that are part of the "relation"
osm_way_df = osm_way_df.drop(member_way_ids)
except Exception:
log("Could not handle OSM "relation": {}".format(relation["id"]))
// Merge "osm_way_df" and the "gdf_relations"
osm_way_df = osm_way_df.append(gdf_relations)
return osm_way_df