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

Add "eroding"/"prograding" description column to statistics #6

Closed
robbibt opened this issue Jul 1, 2020 · 1 comment
Closed

Add "eroding"/"prograding" description column to statistics #6

robbibt opened this issue Jul 1, 2020 · 1 comment
Assignees
Labels
core-functionality Functionality required directly by the core DEACL product high-priority

Comments

@robbibt
Copy link
Collaborator

robbibt commented Jul 1, 2020

Regarding adding a simple plain-text description to charts of coastal change through time that will be displayed on Terria, e.g. pseudo-code "This location has {"eroded" if rate_time < 0 else "accreted"} by {abs(rate_time)} metres per year since 1988"? :

Ok so unfortunantly for our templating system we can only use a true/false flag, so if the data could have hasEroded property that would make our life easier

If a simple boolean column hasEroded could be added, this could be used to generate the chart:

{
    "catalog": [{
        "type": "wms",
        "name": "Coastline",
        "url": "https://nonprod.geoserver.dea.ga.gov.au/geoserver/wms",
        "layers": "dea:DigitalEarthAustraliaCoastlines",
        "featureInfoTemplate": "This location has {{#hasEroded}}eroded{{/hasEroded}}{{^hasEroded}}accreted{{/hasEroded}} by {{rate_time}} metres per year since 1988</br></br><chart title='{{name}}' y-column='Value' x-column='Year' column-units='{{terria.timeSeries.units}}' preview-x-label='YEAR'>Year,Value\n1988,{{1988}}\n1989,{{1989}}\n1990,{{1990}}\n1991,{{1991}}\n1992,{{1992}}\n1993,{{1993}}\n1994,{{1994}}\n</chart>" 
    }]    
}

Compared to a simpler implementation:

{
    "catalog": [{
        "type": "wms",
        "name": "Coastline",
        "url": "https://nonprod.geoserver.dea.ga.gov.au/geoserver/wms",
        "layers": "dea:DigitalEarthAustraliaCoastlines",
        "featureInfoTemplate": "This location has changed by {{rate_time}} metres per year since 1988</br></br><chart title='{{name}}' y-column='Value' x-column='Year' column-units='{{terria.timeSeries.units}}' preview-x-label='YEAR'>Year,Value\n1988,{{1988}}\n1989,{{1989}}\n1990,{{1990}}\n1991,{{1991}}\n1992,{{1992}}\n1993,{{1993}}\n1994,{{1994}}\n</chart>" 
    }]    
}
@robbibt robbibt added core-functionality Functionality required directly by the core DEACL product visualisation labels Jul 1, 2020
@robbibt robbibt self-assigned this Jul 1, 2020
@robbibt robbibt added this to To do in DEA CoastLines v1.0.0 via automation Jul 1, 2020
@robbibt
Copy link
Collaborator Author

robbibt commented Jul 1, 2020

Screenshot of potential Terria graph without descriptive header:
kindalikethis

@robbibt robbibt closed this as completed in fe3a66e Jul 2, 2020
DEA CoastLines v1.0.0 automation moved this from To do to Done Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-functionality Functionality required directly by the core DEACL product high-priority
Projects
No open projects
Development

No branches or pull requests

1 participant