safe.impact_functions.generic.classified_raster_building.metadata_definitions module

InaSAFE Disaster risk tool by Australian Aid - Metadata for generic Impact function on Building for Classified Hazard.

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_raster_building.metadata_definitions.ClassifiedRasterHazardBuildingMetadata[source]

Bases: safe.impact_functions.impact_function_metadata.ImpactFunctionMetadata

Metadata for Classified Hazard Building Impact Function.

New in version 2.1.

We only need to re-implement as_dict(), all other behaviours are inherited from the abstract base class.

static as_dict()[source]

Return metadata as a dictionary.

This is a static method. You can use it to get the metadata in dictionary format for an impact function.

Returns:A dictionary representing all the metadata for the concrete impact function.
Return type:dict