cityImage.classify_land_uses_raws_into_OSMgroups#

cityImage.classify_land_uses_raws_into_OSMgroups(buildings_gdf, land_uses_raw_column='land_uses_raw', new_group_column='land_uses')[source]#

Convert per-row triplets into per-row macro-group labels.

Input#

buildings_gdf[land_uses_raw_column]:
Scalar or list-like of triplets formatted as:

“<token>:<group>:<domain>”

Output#

buildings_gdf[new_group_column]:

list[str] of group labels, order-preserving and de-duplicated. UNCLASSIFIED is kept (never dropped).

Notes

  • Malformed triplets (not 3-part) are ignored.

  • De-dup is by group string only (first occurrence wins).