Slide 28
Slide 28 text
Stations GeoJSON template
1. {
2. "type":"FeatureCollection",
3. "features":[
4. {"$source":"stations"},
5. {
6. "Identifier":"${id}",
7. "geometry":"${position}",
8. "properties":{
9. "Name":"${common_name}",
10. "Code":"$${strConcat('STATION-', property('code'))}",
11. "Location":"$${toWKT(property('position'))}",
12. "Observations":[
13. {"$source":"observations"},
14. {
15. "Timestamp":"${time}",
16. "Value":"$${strConcat(
17. strConcat(property('value'),
18. 'property('parameters.param_unit'))}",
19. "Type":"${parameters.param_name}"
20. }
21. ]
22. }
23. }
24. ]
25. }
1. {
2. "type":"FeatureCollection",
3. "features":[
4. {
5. "Identifier":7,
6. "geometry":{
7. "type":"Point",
8. "coordinates":[11.34, 44.5]
9. },
10. "properties":{
11. "Name":"Bologna",
12. "Code":"STATION-BOL",
13. "Location":"POINT (11.34
44.5)",
14. "Observations":[
15. {
16. "Timestamp":"2016/28...",
17. "Value":"35.0 C",
18. "Type":"temperature"
19. },
20. {
21. "Timestamp":"2016/29...",
22. "Value":"80.0 Km/h",
23. "Type":"wind speed"
24. }
25. ]
26. }
27. }
28. (...)