safe.impact_functions.inundation.flood_raster_road.test.test_flood_raster_roads_function module

InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - Impact function Test Cases.

Contact : kolesov.dm@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.inundation.flood_raster_road.test.test_flood_raster_roads_function.TestFloodRasterRoadsFunction(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test for Flood Raster Roads Impact Function.

setUp()[source]
test_filter()[source]

Test filtering IF from layer keywords

test_raster_to_vector_and_line_intersection()[source]

Test the core part of the analysis.

  1. Test creation of spatial index of flood cells
  2. Test intersection of flood cells with roads layer
test_run()[source]
test_zero_intersection()[source]