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

Models change for InaSAFE v4 #222

Open
20 tasks
lucernae opened this issue Jan 30, 2018 · 1 comment
Open
20 tasks

Models change for InaSAFE v4 #222

lucernae opened this issue Jan 30, 2018 · 1 comment

Comments

@lucernae
Copy link
Contributor

Listed here is necessary model changes to store Hazard Data.

Earthquake

  • shake_grid_xml: store shake_grid file content into an xml text.
  • hazard_path: The path to associated hazard layer. Set to None if needs to be generated.
  • source_type: Post processed or initial shake data
  • generated_time: store time in utc of when the output is finished generated
  • shake_id: should not be unique, because there might be some shake with the same ID.
  • inasafe_version: store inasafe version of analysis result.
  • has_reports: property (not a field) that tells if the event already has reports

EarthquakeGroup:

  • shake_group_id: shake_id that is decided to be a shake_group_id
  • shake_id: associate shake_id that belongs to the same group

EarthquakeMMIContour:

  • shake_id: associated shake_id of the contour
  • contour_polygon: the contour polygon
  • mmi_level: MMI Level of the contour

Flood:

  • hazard_path: The path to associated hazard layer. Set to None if needs to be generated.
  • impact_layer: delete this. because it was going to be on the fly processing. Set to None if needs to be generated.
  • has_reports: property (not a field) that tells if the event already has reports
  • inasafe_version: store inasafe version of analysis result.
  • source_type: source of the api. only petabencana for now.

Ash:

  • hazard_path: The path to associated hazard layer. Set to None if needs to be generated.
  • has_reports: property (not a field) that tells if the event already has reports
  • inasafe_version: store inasafe version of analysis result.
@lucernae
Copy link
Contributor Author

lucernae commented Feb 8, 2018

cc @ismailsunni @myarjunar this is a draft of the models.

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

No branches or pull requests

3 participants