-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(indicators): separate templates from metadata
separate indicators text templates for label and result description from metadata.
- Loading branch information
1 parent
5b6135a
commit 11d6efb
Showing
24 changed files
with
158 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
ohsome_quality_api/indicators/attribute_completeness/templates.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
label_description: | ||
red: >- | ||
Less than 25% of the features match the expected tags. | ||
yellow: >- | ||
Around 25-75% of the features match the expected tags. | ||
green: >- | ||
More than 75% of the features match the expected tags. | ||
undefined: >- | ||
The quality level could not be calculated for this indicator. | ||
result_description: >- | ||
The ratio of the features (all: $all) compared to features with | ||
expected tags (matched: $matched) is $result. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ohsome_quality_api/indicators/building_comparison/templates.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
label_description: | ||
red: >- | ||
The completeness of OSM buildings in your area-of-interest is low. | ||
yellow: >- | ||
The completeness of OSM buildings in your area-of-interest is medium. | ||
green: >- | ||
The completeness of OSM buildings in your area-of-interest is high. | ||
undefined: >- | ||
Comparison could not be made. | ||
result_description: >- | ||
The completeness in comparison to $dataset is $ratio%. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
label_description: | ||
red: >- | ||
Many features are out-of-date. | ||
yellow: >- | ||
Some features are up-to-date and some features are out-of-date. | ||
green: >- | ||
Most features are up-to-date. | ||
undefined: >- | ||
The quality level could not be calculated for this indicator. | ||
result_description: >- | ||
In the area of interest $up_to_date_contrib_rel% of the $num_of_elements features were edited (created or modified) for the last time in the period between $from_timestamp and $to_timestamp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
label_description: | ||
red: >- | ||
It is probably hard to orientate on OSM-based sketchmaps of this region. | ||
There are just few orientation providing features available, | ||
you should explore, if participants can orientate properly. | ||
yellow: >- | ||
It might be difficult to orientate on OSM-based sketchmaps of | ||
this region. There are not many orientation providing features available, | ||
you should explore, if participants can orientate properly. | ||
green: >- | ||
It is probably easy to orientate on OSM-based sketchmaps of this region. | ||
undefined: >- | ||
The quality level could not be calculated for this indicator. | ||
result_description: >- | ||
The density of landmarks | ||
(points of reference, e.g. waterbodies, supermarkets, churches, bus stops) | ||
is $result features per sqkm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ohsome_quality_api/indicators/mapping_saturation/templates.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
label_description: | ||
red: >- | ||
No saturation identified (Saturation ≤ 30%). | ||
yellow: >- | ||
Saturation is in progress (30% < Saturation ≤ 97%). | ||
green: >- | ||
High saturation has been reached (97% < Saturation ≤ 100%). | ||
undefined: >- | ||
Saturation could not be calculated. | ||
result_description: >- | ||
The saturation of the last 3 years is $saturation%. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
label_description: | ||
red: >- | ||
Bad data quality. | ||
yellow: >- | ||
Medium data quality. | ||
green: >- | ||
Good data quality. | ||
undefined: >- | ||
The quality level could not be calculated for this indicator. | ||
result_description: >- | ||
Some description of the result. |
Oops, something went wrong.