Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hazard aggregation summary (output from InaSAFE) was not found in the datastore #5127

Open
1 of 2 tasks
vermeulendivan opened this issue Jan 3, 2024 · 0 comments
Open
1 of 2 tasks

Comments

@vermeulendivan
Copy link

Problem

At the end of processing an error appears, stating that the hazard aggregation summary layer cannot be found. This is an output from the InaSAFE processing, and not an input provided by a user. None of the output layers are added to the QGIS canvas if this happens.

2024-01-03T10:18:02     INFO    Sentry logging disabled in safe
2024-01-03T10:18:02     INFO    Sentry logging disabled in safe
2024-01-03T10:18:03     INFO    enable_messaging 
2024-01-03T10:19:58     INFO    Layer based file but no xml file.
             Layer path: F:/SyncThing/Blantyre/Analysis projects/flood/flood_50yr_clipped.shp.
2024-01-03T10:19:58     INFO    Showing No Keywords Message
2024-01-03T10:19:58     INFO    Layer based file but no xml file.
             Layer path: F:/SyncThing/Blantyre/Analysis projects/flood/flood_50yr_clipped.shp.
2024-01-03T10:19:58     INFO    Showing No Keywords Message
2024-01-03T10:20:00     INFO    Layer based file but no xml file.
             Layer path: F:/SyncThing/Blantyre/Analysis projects/flood/flood_50yr_clipped.shp.
2024-01-03T10:20:00     INFO    Showing No Keywords Message
2024-01-03T10:20:09     INFO    Layer based file but no xml file.
             Layer path: F:/SyncThing/Blantyre/Analysis projects/flood/flood_50yr_clipped.shp.
2024-01-03T10:20:09     INFO    Showing No Keywords Message
2024-01-03T10:20:10     INFO    Layer based file but no xml file.
             Layer path: F:/SyncThing/Blantyre/Analysis projects/flood/flood_50yr_clipped.shp.
2024-01-03T10:20:10     INFO    Showing No Keywords Message
2024-01-03T10:20:17     INFO    enable_messaging _Any
2024-01-03T10:20:31     INFO    Layer based file but no xml file.
             Layer path: F:/SyncThing/Blantyre/Analysis projects/flood/flood_50yr_clipped.shp.
2024-01-03T10:20:31     INFO    Showing No Keywords Message
2024-01-03T10:21:38     INFO    ANALYSIS : The impact function is starting.
2024-01-03T10:21:38     INFO    Datastore : C:/Users/verme/AppData/Local/Temp/inasafe/2023-10-09/verme/impacts/FloodPolygonOnStructuresPolygon_03January2024_10h21-38.514524
2024-01-03T10:21:38     INFO    ANALYSIS : Pre processing
2024-01-03T10:21:38     INFO    ANALYSIS : Aggregation preparation
2024-01-03T10:21:38     INFO    aggregation: provided: False
2024-01-03T10:21:38     INFO    The aggregation layer is not provided. We are going to create it from the analysis extent and the expected CRS.
2024-01-03T10:21:38     INFO    impact function: crs: EPSG:32736
2024-01-03T10:21:38     INFO    aggregation: Convert bbox aggregation to polygon layer with keywords
2024-01-03T10:21:38     INFO    The exposure is a vector layer. According to the kind of exposure, we need to check if the exposure has some counts before adding some default ratios.
2024-01-03T10:21:38     INFO    aggregation: Convert the aggregation layer to the analysis layer
2024-01-03T10:21:38     INFO    ANALYSIS : Hazard preparation
2024-01-03T10:21:38     INFO    hazard: use_same_projection_as_aggregation: True
2024-01-03T10:21:38     INFO    hazard: Clean hazard polygons from possible invalid geometries
2024-01-03T10:22:40     INFO    No feature has been removed from the layer: flood_50yr_clipped
2024-01-03T10:22:40     INFO    hazard: Clip and mask hazard polygons with the analysis layer
2024-01-03T10:22:43     INFO    hazard: Cleaning the vector hazard attribute table
2024-01-03T10:23:18     INFO    No feature has been removed from hazard during the vector layer preparation
2024-01-03T10:23:18     INFO    We add an ID column in hazard
2024-01-03T10:23:31     INFO    Fields which have been removed from hazard : hazard cla
2024-01-03T10:23:31     INFO    hazard: Assign classes based on value map
2024-01-03T10:23:40     INFO    ANALYSIS : Aggregate hazard preparation
2024-01-03T10:23:40     INFO    hazard: Make hazard layer valid
2024-01-03T10:24:38     INFO    No feature has been removed from the layer: hazard_cleaned
2024-01-03T10:24:38     INFO    aggregation: Union hazard polygons with aggregation areas and assign hazard class
2024-01-03T13:43:37     INFO    ANALYSIS : Exposure preparation
2024-01-03T13:43:37     INFO    exposure: use_same_projection_as_aggregation: True
2024-01-03T13:43:37     INFO    exposure: Smart clip
2024-01-03T13:43:39     INFO    exposure: Cleaning the vector exposure attribute table
2024-01-03T13:43:39     INFO    No feature has been removed from exposure during the vector layer preparation
2024-01-03T13:43:39     INFO    We add an ID column in exposure
2024-01-03T13:43:39     INFO    Fields which have been removed from exposure : OBJECTID osm_id office building name addrstreet number_of lift_facil building_u building_y building_c descriptio area_measu
2024-01-03T13:43:39     INFO    exposure: Compute ratios from counts
2024-01-03T13:43:39     INFO    Population count field population_count_field is not detected in the exposure. We will not compute a ratio from this field because the formula needs Population count field. Formula: ratio = subset count / total count.
2024-01-03T13:43:39     INFO    exposure: Add default values
2024-01-03T13:43:39     INFO    inasafe_default_value is not present, we can not fill default ratios for this layer.
2024-01-03T13:43:39     INFO    exposure: Assign classes based on value map
2024-01-03T13:43:39     INFO    ANALYSIS : Intersect Exposure and Aggregate Hazard
2024-01-03T13:43:39     INFO    impact function: Highest class of hazard is assigned to the exposure
2024-01-03T13:43:51     INFO    ANALYSIS : Post processing
2024-01-03T13:43:51     INFO    The size calculator is set to use Meters
2024-01-03T13:43:51     INFO    post_processor: Size Value Post Processor
2024-01-03T13:43:51     INFO    Size Value Post Processor : Running
2024-01-03T13:43:51     INFO    post_processor: Affected Post Processor
2024-01-03T13:43:51     INFO    Affected Post Processor : Running
2024-01-03T13:43:51     INFO    ANALYSIS : Summary calculation
2024-01-03T13:43:51     INFO    impact function: Aggregate the impact summary
2024-01-03T13:43:51     INFO    Computing the aggregate hazard summary.
2024-01-03T13:46:53     INFO    impact function: Aggregate the aggregation summary
2024-01-03T13:46:59     INFO    impact function: Aggregate the analysis summary
2024-01-03T13:47:07     INFO    impact function: Build the exposure summary table
2024-01-03T13:48:55     INFO    Layer saved impact_analysis
2024-01-03T13:52:05     INFO    Layer saved hazard_aggregation_summary
2024-01-03T13:57:17     INFO    hazard_aggregation_summary was not found in the datastore or the layer was not valid.
2024-01-03T13:57:17     INFO    The impact function could not run because of a bug.
2024-01-03T13:57:17     INFO    ****Problem
             
              The following problem(s) were encountered whilst running the analysis.
             
              - Exception
             
             ****Suggestion
             
              You can try the following to resolve the issue:
             
              - Check that you have the latest version of InaSAFE installed - you may have encountered a bug that is fixed in a subsequent release.
              - Check the InaSAFE documentation to see if you are trying to do something unsupported.
              - Report the problem using the issue tracker at https://github.com/inasafe/inasafe/issues. Reporting an issue requires that you first create a free account at http://github.com. When you report the issue, please copy and paste the complete contents of this panel into the issue to ensure the best possible chance of getting your issue resolved.
              - Try contacting one of the InaSAFE development team by sending an email to [email protected]. Please ensure that you copy and paste the complete contents of this panel into the email.
             
             *****Details
             
              These additional details were reported when the problem occurred.
             
              - Something went wrong with the datastore : hazard_aggregation_summary was not found in the datastore or the layer was not valid.
             
             *****Diagnostics
             
              1. In file "C:\Users/verme/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\impact_function\impact_function.py", line 1449, in run self._run()
              2. In file "C:\Users/verme/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\utilities\profiling.py", line 126, in with_profiling ret = fn(*args, **kwargs)
              3. In file "C:\Users/verme/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\impact_function\impact_function.py", line 1765, in _run raise Exception(

Expected Behaviour

Environment

  • InaSAFE : 5.0.5
  • QGIS : 3.34 (noted on other versions as well)
  • OS : Windows (noted on Linux as well)
  • Data used :
    • Exposure : Yes
    • Hazard : Yes
    • Aggregation : Yes
    • Extent : ?

Checklist:

  • Did you try to run it in debug mode ?
  • Is the data available ?
    • If yes, where (BTSync, data.inasafe.org, zip) ?

Proposed Solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant