-
Notifications
You must be signed in to change notification settings - Fork 0
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
Analyse flood risk for buildings #36
Comments
@leendertvanwolfswinkel Few questions:
|
@benvanbasten-ns I think you created these endpoints, right? Can you help out @ldebek please |
Hi @ldebek 1 The method name should be passed in the \process api call. It should either be "dgbc" or "advanced". I changed the API description in this issue 2 total_rain_mm is no longer required. As for the floor_level. In case the method is "advanced", the buildings geopackage should contain a "floor_level" attribute. Regarding the floor level column: this is not configurable in the backend. This column with this particular name should be added in the frontend, if necessary. |
@benvanbasten-ns Thanks for clarification. I have one more question - is |
@ldebek Good question. That refers to the vulnerable_buildings result. |
@benvanbasten-ns Thanks - one more request. It seems I don't have an access to the staging Lizard (https://nxt3.staging.lizard.net/) - could you please sort that out for me? 😃 |
@ldebek I think I can. Did you receive an invitation mail? |
@benvanbasten-ns Unfortunately not. |
@ldebek And now ? |
@benvanbasten-ns Got it - thanks! |
@ldebek Ok, I've given you the right permissions, I think. You should be able to go to https://nxt3.staging.lizard.net/ -> management -> personal api keys |
@benvanbasten-ns All works great now - thanks again! :) |
Hi @benvanbasten-ns . I have a problem with creating new result for buildings. Getting 403 code during attempt of POST request to |
@ldebek Sorry voor de late response. I've changed your permission. I think you should be able to do it now. |
@benvanbasten-ns Thanks Ben. I have another question now - is there a way to remove/overwrite previously created 'buildings' result? |
@ldebek Yes, that's expected behavior. When you delete something, I becomes marked for deletion (and hidden), and will be deleted after X days. Unfortunately, it will remain in the database for that period... I'll check if I can delete it from the DB |
@ldebek for which scenario are you trying to recreate the result? |
@benvanbasten-ns This one: https://nxt3.staging.lizard.net/api/v4/scenarios/9b385b9f-2f85-459d-9c2d-0942d78b836a/ . Btw. I'm wondering how to best handle case if processing of the buildings fails for some user and user would like to retry whole workflow? Any hints how should it be done to avoid waiting for deleting from DB to happen? |
@ldebek I could not find a buildings result in this scenario. Could it be that it has been cleaned up already? Can you try again? We are currently thinking about ways to avoid the problem you mention. |
@leendertvanwolfswinkel @benvanbasten-ns I've implemented requested functionality, with limitation for cases if user want to re-run analysis for the same scenario. Even if plugin is deleting existing |
UI
Enable the button if the scenario contains a result with the result code
depth-max-dtri
and/ors1-max-dtri
.When the user clicks the button, show a dialog where they can fill in the following inputs:
depth-max-dtri
. Advanced should be available only when there is as1-max-dtri
resultAPI requests / workflow
Save the selected buildings to a geopackage, in a layer that has a field "floor_level" that is a copy of the column that the user indicated they want to use as floor level.
Create a "buildings" result object for the scenario
When the processing is finished
Once the processing is finished, refresh the "downloadable files" list. The vulnerable buildings result should appear in the list
The text was updated successfully, but these errors were encountered: