Beispiel #1
0
 def __init__(self):
     super(VolcanoPointBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # A set of volcano names
     self.volcano_names = set()
     self._affected_categories_volcano = []
     self.hazard_zone_attribute = 'radius'
Beispiel #2
0
    def __init__(self):
        super(ClassifiedPolygonHazardBuildingFunction, self).__init__()
        BuildingExposureReportMixin.__init__(self)

        # Hazard zones are all unique values from the hazard zone attribute
        self.hazard_zones = []
        # Set the question of the IF (as the hazard data is not an event)
        self.question = tr(
            'In each of the hazard zones how many buildings might be '
            'affected?')
Beispiel #3
0
    def __init__(self):
        super(ClassifiedPolygonHazardBuildingFunction, self).__init__()
        BuildingExposureReportMixin.__init__(self)

        # Hazard zones are all unique values from the hazard zone attribute
        self.hazard_zones = []
        # Set the question of the IF (as the hazard data is not an event)
        self.question = tr(
            'In each of the hazard zones how many buildings might be '
            'affected?')
Beispiel #4
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(TsunamiRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self._target_field = 'depth'
     self.hazard_classes = [
         tr('Dry Zone'),
         tr('Low Hazard Zone'),
         tr('Medium Hazard Zone'),
         tr('High Hazard Zone'),
         tr('Very High Hazard Zone'),
     ]
Beispiel #5
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(TsunamiRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self._target_field = 'depth'
     self.hazard_classes = [
         tr('Dry Zone'),
         tr('Low Hazard Zone'),
         tr('Medium Hazard Zone'),
         tr('High Hazard Zone'),
         tr('Very High Hazard Zone'),
     ]
Beispiel #6
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(FloodRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
Beispiel #7
0
 def __init__(self):
     super(EarthquakeBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.is_nexis = False
     self.structure_class_field = None
Beispiel #8
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(FloodRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
Beispiel #9
0
 def __init__(self):
     super(ClassifiedRasterHazardBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.affected_field = "affected"
     self.target_field = "hazard"
Beispiel #10
0
 def __init__(self):
     super(VolcanoPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.volcano_names = tr('Not specified in data')
     self._target_field = 'Hazard'
Beispiel #11
0
 def __init__(self):
     super(FloodPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # The 'wet' variable
     self.wet = 'wet'
Beispiel #12
0
 def __init__(self):
     super(ClassifiedRasterHazardBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.affected_field = 'affected'
     self.target_field = 'hazard'
Beispiel #13
0
 def __init__(self):
     super(FloodPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # The 'wet' variable
     self.wet = 'wet'
Beispiel #14
0
 def __init__(self):
     super(EarthquakeBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.is_nexis = False
     self.structure_class_field = None
Beispiel #15
0
 def __init__(self):
     super(VolcanoPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # A set of volcano names
     self.volcano_names = set()
     self._target_field = 'Hazard'