cartagen.BlockAgent#

class BlockAgent(feature, components, sections, importance=1)#

Agent for building blocks generalisation.

Create an object to generalise building blocks within the AGENT process.

Parameters:
  • feature (GeoSeries of Polygon) – The building blocks to create the agent from.

  • importance (int, optional) – Importance of the agent within the process.

See also

run_agents

Execute the AGENT process.

add_constraints(*constraints)#

Set one or multiple constraints to the process.

Parameters:

*constraints (GeneralisationConstraint) – Generalisation constraints to apply to this agent.

property constraints#

Returns the constraints of the process.