Module: safe_qgis.minimum_needs

Minimum Needs Implementation.

Tip

Provides minimum needs assessment for a polygon layer containing counts of people affected per polygon.

class safe_qgis.minimum_needs.MinimumNeeds(parent)[source]

Dialog implementation class for the InaSAFE keywords editor.

accept()[source]

PRocess the layer and field and generate a new layer.

Note

This is called on ok click.

minimum_needs(input_layer, population_name)[source]
Args
input_layer: InaSAFE layer object assumed to contain
population counts

population_name: Attribute name that holds population count

Returns
InaSAFE layer with attributes for minimum needs as per Perka 7
on_cboPolygonLayers_currentIndexChanged(theIndex=None)[source]

Automatic slot executed when the layer is changed to update fields.

Args:
theIndex: int - passed by the signal that triggers this slot.
Returns:
None.
Raises:
no exceptions explicitly raised.
polygonLayersToCombo()[source]

Populate the combo with all polygon layers loaded in QGIS.

This module forms part of the InaSAFE tool.

Previous topic

Module: safe_qgis.options_dialog_base

Next topic

Module: safe_qgis.impact_calculator_thread

This Page