cartagen.BuildingSizeConstraint

cartagen.BuildingSizeConstraint#

class BuildingSizeConstraint(agent, importance, min_area=0.0, area_threshold=70.0)#

Agent onstraint to handle building size.

This constraint asks for the building elimination if its area is too small for the wanted scale.

Parameters:
  • agent (BuildingAgent) – The building agent object to apply the constraint to.

  • importance (int) – The Importance of the constraint.

  • min_area (float, optional) – Area in square meters below which the building will be enlarge to this same value.

  • elimination_area_threshold (float, optional) – Area in square meters below which the building will be eliminated.

See also

run_agents

Execute the AGENT process.

BuildingGranularityConstraint

Agent constraint to handle building granularity.

BuildingSquarenessConstraint

Agent constraint to handle building squareness.