Hazard Curves and Loss Curves display only the first two points in geoexplorer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Platform |
Fix Committed
|
High
|
Daniele Viganò |
Bug Description
1. Run a hazard calculation - I used demos/risk Simple Classical PSHA
2. Open the results in the geoexplorer, click on 'info' button and then on one of the hazard curve points
3. The graph displays a curve which is a straight line joining only the first two values from the poes array - the next point is displayed off the end of the grahph.
You can view the complete list of poes values by downloading the layer data as csv or similar or as follows
4. right-click the curves layer, select Layer Properties
5. Select the Display tab
6. Change the Info Format to "text/plain"
If this can be fixed quickly and easily then this would be worthwhile. If it is a big job them perhaps we should rethink the approach altogether and consider means of integrating with the hazard and risk viewer application or the use of a new dedicated application.
Loss curves behave in exactly the same way, to test:
7. Return to calculate page, run risk based on hazard results, upload same demo zip
8. Open loss curves layer in geoexplorer
Changed in oq-platform: | |
status: | In Progress → Fix Committed |
It looks like that the curves are not only missing points, they are completely wrong: the y axis marks don't match with the plotted data. Data used by d3.js to plot looks good, so something is wrong in the plotting code. I'm keep working on it.