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

CSIS URI variables in praxis 4 [RA/IA]: Heat mortality risk/impact #46

Closed
DenoBeno opened this issue Sep 16, 2019 · 17 comments
Closed

CSIS URI variables in praxis 4 [RA/IA]: Heat mortality risk/impact #46

DenoBeno opened this issue Sep 16, 2019 · 17 comments
Assignees
Labels
BB: Catalogue of ER & AO Catalogue of Elements at Risk and Adaptation Options Building Block enhancement New feature or request

Comments

@DenoBeno
Copy link

DenoBeno commented Sep 16, 2019

Related to #42, #45, #46, #47, #49

I have implemented "Heat mortality risk/impact screening", please take a look
https://csis.myclimateservice.eu/node/1356/edit

@humerh: Are the uris correct?
@p-a-s-c-a-l: Is this how we want the variables used?
@therter: I hope that you can support this in the map soon...

@DenoBeno
Copy link
Author

@p-a-s-c-a-l , @therter : please note that updating of the existing heat hazard resources with resources that use variables is more important than you think. Right now, we have over 100 resources linked to "European Wide Data Package" https://csis.myclimateservice.eu/node/682. That is completely unmaintainable:

that is: it's nearly impossible to double-check if any of the resources is missing and if all of them are correctly defined. Not to mention updating anything.

@DenoBeno DenoBeno changed the title CSIS URI variables in praxis 1: Heat mortality risk/impact CSIS URI variables in praxis 2: Heat mortality risk/impact Sep 16, 2019
@p-a-s-c-a-l p-a-s-c-a-l added the enhancement New feature or request label Sep 17, 2019
@p-a-s-c-a-l p-a-s-c-a-l added this to the 1st Data Package milestone Sep 17, 2019
@p-a-s-c-a-l
Copy link
Member

@humerh: I replaced the template URLs listed under Impact Calculation Service (Mortality) with some variables and got the following errors:

@DenoBeno
Copy link
Author

There is a mix of various capitalizations for the variable values in the links. Not sure if that's the reason for the error, but it doesn't look correct to me:

filter=STUDY_VARIANT%3D’BASELINE’&filter=TIME_PERIOD%3D’Baseline’&filter=EMISSIONS_SCENARIO%3D’Baseline’&filter=EVENT_FREQUENCY%3D’rare’&filter=SZ_ID%3D2846 - ok

I also wonder if the single quotes can be written as ' or must be written as %27?

@DenoBeno
Copy link
Author

DenoBeno commented Sep 17, 2019

I looked into https://service.emikat.at/EmiKatTst/api/scenarios/2846/feature/view.2975/table/geojson?rownum=1000&filter=STUDY_VARIANT%3D’BASELINE’&filter=TIME_PERIOD%3D’Baseline’&filter=EMISSIONS_SCENARIO%3D’Baseline’&filter=EVENT_FREQUENCY%3D’Rare’&filter=SZ_ID%3D2846 and the output seems to be wrong to me. I also tried with 'rare', the result is the same - this filter seems to be ignored.
image

using %27 instead of ' doesn't seem to have any effect.

In fact, it would seem that other filters are ignored too. E.g., I'm also getting this out of it:

image

@DenoBeno
Copy link
Author

@humerh and I have tested this now - the filters seem to be completely broken at the moment. Possibly due to renaming of the parameters earlier today?

@humerh will fix this ASAP.

@p-a-s-c-a-l
Copy link
Member

p-a-s-c-a-l commented Sep 18, 2019

@humerh any news on that? Could you please post a REST API URL that actually works so that i can test my implementation in clarity-h2020/simple-table-component#5 ?

@humerh
Copy link

humerh commented Sep 18, 2019

This should be solved now. Sorry.

@DenoBeno
Copy link
Author

DenoBeno commented Sep 19, 2019

I have a problem with map. Looking at the #46, I would expect that the same link as there must work here, just "clarity:view.2974" replaced by "clarity:view.2975"

however, https://service.emikat.at/geoserver/clarity/wms?service=WMS&version=1.1.0&request=GetMap&layers=clarity:view.2975&bbox=4672000.0,1979500.0,4687500.0,1988000.0&width=768&height=421&srs=EPSG:3035&format=image/gif&CQL_FILTER=STUDY_VARIANT=%27BASELINE%27%20and%20TIME_PERIOD=%27Baseline%27%20AND%20EMISSIONS_SCENARIO=%27Baseline%27%20AND%20EVENT_FREQUENCY=%27Rare%27%20AND%20SZ_ID=2846&styles=T_A fails.

ah, OK - last parameter is too much. So this works:

https://service.emikat.at/geoserver/clarity/wms?service=WMS&version=1.1.0&request=GetMap&layers=clarity:view.2975&bbox=4672000.0,1979500.0,4687500.0,1988000.0&width=768&height=421&srs=EPSG:3035&format=image/gif&CQL_FILTER=STUDY_VARIANT='BASELINE' and TIME_PERIOD='Baseline' AND EMISSIONS_SCENARIO='Baseline' AND EVENT_FREQUENCY='Rare' AND SZ_ID=2846

And thus, this must be OK too:

https://service.emikat.at/geoserver/clarity/wms?service=WMS&version=1.1.0&request=GetMap&layers=clarity:view.2975&bbox=4672000.0,1979500.0,4687500.0,1988000.0&width=768&height=421&srs=EPSG:3035&format=image/gif&CQL_FILTER=STUDY_VARIANT='${study_variant}' and TIME_PERIOD='${time_period}' AND EMISSIONS_SCENARIO='${emissions_scenario}' AND EVENT_FREQUENCY='${event_frequency}' AND SZ_ID=${emikat_id}

@DenoBeno
Copy link
Author

DenoBeno commented Sep 19, 2019

Status: https://csis.myclimateservice.eu/node/1356 has been updated, for potential issues see #45 (comment)

@p-a-s-c-a-l
Copy link
Member

You can test the JSON API response with the new simple table component here (need to be logged-in in CSIS in the same browser!).

grafik

You can even change the URL Template to test the other APIs like Population Exposure, but beware of the ${} pitfall.

@p-a-s-c-a-l
Copy link
Member

@p-a-s-c-a-l p-a-s-c-a-l changed the title CSIS URI variables in praxis 2: Heat mortality risk/impact CSIS URI variables in praxis 4 [RA/IA]: Heat mortality risk/impact Sep 26, 2019
@DenoBeno
Copy link
Author

This should be OK now no?

@p-a-s-c-a-l
Copy link
Member

OK

@p-a-s-c-a-l p-a-s-c-a-l added the BB: Catalogue of ER & AO Catalogue of Elements at Risk and Adaptation Options Building Block label Oct 30, 2019
@p-a-s-c-a-l
Copy link
Member

Update EMIKAT JSON API URIs has described here

@p-a-s-c-a-l
Copy link
Member

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BB: Catalogue of ER & AO Catalogue of Elements at Risk and Adaptation Options Building Block enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants