safe.metadata.provenance.if_provenance_step module

InaSAFE Disaster risk assessment tool developed by AusAid - metadata module.

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.metadata.provenance.if_provenance_step.IFProvenanceStep(title, description, data, timestamp=None)[source]

Bases: safe.metadata.provenance.provenance_step.ProvenanceStep

Class to store a provenance step from an impact function.

all impact_functions_fields need to be passed in the data dict

New in version 3.2.

impact_functions_fields = ['start_time', 'finish_time', 'hazard_layer', 'exposure_layer', 'impact_function_id', 'impact_function_version', 'host_name', 'user', 'qgis_version', 'gdal_version', 'qt_version', 'pyqt_version', 'os', 'inasafe_version', 'exposure_pixel_size', 'hazard_pixel_size', 'impact_pixel_size', 'analysis_extent', 'parameter']
xml[source]

the xml string representation.

Returns:the xml
Return type:str