pedpy.data.geometry module#
Module handling the geometrical environment of the analysis.
- class pedpy.data.geometry.Geometry(*, walkable_area: Polygon, obstacles: Optional[List[Polygon]] = None)[source]#
Bases:
objectClass holding the geometry information of the analysis.
- Parameters
walkable_area (Polygon) –
obstacles (List[Polygon]) –
- walkable_area#
area in which the pedestrian walk, they are only considered for the analysis when inside this area.
- Type
shapely.Polygon
- obstacles#
areas which are excluded from the analysis, pedestrians inside these areas will be ignored.
- Type
List[shapely.Polygon]
- add_obstacle(obstacle: Polygon) None[source]#
Adds an obstacle to the geometry.
- Parameters
obstacle (Polygon) – area which will be excluded from the analysis.
- Return type
None
- walkable_area: Polygon#