cityImage.compute_local_scores#
- cityImage.compute_local_scores(buildings_gdf, local_indexes_weights, local_components_weights, rescaling_radius=1500)[source]#
The function computes landmarkness at the local level. The components’ weights may be different from the ones used to calculate the global score. The radius parameter indicates the extent of the area considered to rescale the landmarkness local score. - local_indexes_weights: keys are index names (string), items are weights. - local_components_weights: keys are component names (string), items are weights.
- Parameters:
buildings_gdf (Polygon GeoDataFrame) – The input GeoDataFrame containing buildings information.
local_indexes_weights (dict) – Dictionary with index names (string) as keys and weights as values.
local_components_weights (dict) – Dictionary with component names (string) as keys and weights as values.
- Returns:
buildings_gdf – The updated buildings GeoDataFrame.
- Return type:
Polygon GeoDataFrame
Examples
>>> # local landmarkness indexes weights, cScore and pScore have only 1 index each >>> local_indexes_weights = {"3dvis": 0.50, "fac": 0.30, "height": 0.20, "area": 0.40, "2dvis": 0.00, "neigh": 0.30 , "road": 0.30} >>> # local landmarkness components weights >>> local_components_weights = {"vScore": 0.25, "sScore": 0.35, "cScore":0.10 , "pScore": 0.30}