Skip to content

Feature Request: Calculate Building Count Density #19

@soheir96

Description

@soheir96

Currently, the calculate_building_metrics function in our codebase calculates building area density within specified boundaries. However, we also need to calculate building count density to gain insights into the number of buildings per square kilometer.

Proposed Enhancement:

  1. Add Building Count Density Calculation: Measure the number of buildings per square kilometer within each administrative boundary.
  2. Integration: Modify the results dictionary to include the building count density metric.

Steps to Implement:

  1. Within the loop that processes each boundary group:
  • Calculate boundary_area_km2 as is currently done.
  • Add a new metric, building_count_density, calculated as building_count / boundary_area_km2.
  1. Update the results dictionary in the loop to:
results.append({
    f"ADM{admin_level}_PT": boundary[f"ADM{admin_level}_PT"].iloc[0],
    f"ADM{admin_level}_PCODE": pcode,
    "building_count": building_count,
    "building_density_km2": building_density,
    "building_count_density_km2": building_count_density
})

Benefits:

Provides a complementary perspective to building area density.
Allows for more comprehensive urban analysis and planning insights.

Additional Notes:

Ensure all dependencies and input data files are updated accordingly.
Update documentation to reflect this new metric.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions