safe.impact_functions.generic.classified_polygon_building.impact_function module

InaSAFE Disaster risk tool by Australian Aid - Generic Polygon on Building Impact Function.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.impact_functions.generic.classified_polygon_building.impact_function.ClassifiedPolygonHazardBuildingFunction[source]

Bases: safe.impact_functions.bases.classified_vh_classified_ve.ClassifiedVHClassifiedVE, safe.impact_reports.building_exposure_report_mixin.BuildingExposureReportMixin

Impact Function for Generic Polygon on Building.

notes()[source]

Return the notes section of the report.

Returns:The notes that should be attached to this impact report.
Return type:safe.messaging.Message
run()[source]

Risk plugin for classified polygon hazard on building/structure.

Counts number of building exposed to each hazard zones.

Returns:Map of building exposed to each hazard zones. Table with number of buildings affected
Return type:dict