Skip to content

Commit

Permalink
Add preset for landuse=greenhouse_horticulture
Browse files Browse the repository at this point in the history
(closes #4571)

Also adjust matchScores so that odd or generic presets like this one sort lower
  • Loading branch information
bhousel committed Dec 5, 2017
1 parent 6920e08 commit 4140535
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3334,6 +3334,11 @@ en:
# landuse=greenfield
name: Greenfield
terms: '<translate with synonyms or related terms for ''Greenfield'', separated by commas>'
landuse/greenhouse_horticulture:
# landuse=greenhouse_horticulture
name: Greenhouse Horticulture
# 'terms: flower,greenhouse,horticulture,grow,vivero'
terms: '<translate with synonyms or related terms for ''Greenhouse Horticulture'', separated by commas>'
landuse/harbour:
# landuse=harbour
name: Harbor
Expand Down
28 changes: 28 additions & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -8052,6 +8052,7 @@
"landuse": "brownfield"
},
"terms": [],
"matchScore": 0.9,
"name": "Brownfield"
},
"landuse/cemetery": {
Expand Down Expand Up @@ -8097,6 +8098,7 @@
"landuse": "commercial"
},
"terms": [],
"matchScore": 0.9,
"name": "Commercial Area"
},
"landuse/construction": {
Expand Down Expand Up @@ -8208,8 +8210,31 @@
"landuse": "greenfield"
},
"terms": [],
"matchScore": 0.9,
"name": "Greenfield"
},
"landuse/greenhouse_horticulture": {
"icon": "garden",
"fields": [
"name",
"operator"
],
"geometry": [
"area"
],
"terms": [
"flower",
"greenhouse",
"horticulture",
"grow",
"vivero"
],
"tags": {
"landuse": "greenhouse_horticulture"
},
"matchScore": 0.9,
"name": "Greenhouse Horticulture"
},
"landuse/harbour": {
"icon": "harbor",
"fields": [
Expand Down Expand Up @@ -8343,6 +8368,7 @@
"name": "Landfill"
},
"landuse/meadow": {
"icon": "garden",
"geometry": [
"area"
],
Expand Down Expand Up @@ -8875,6 +8901,7 @@
"landuse": "residential"
},
"terms": [],
"matchScore": 0.9,
"name": "Residential Area"
},
"landuse/retail": {
Expand All @@ -8888,6 +8915,7 @@
"tags": {
"landuse": "retail"
},
"matchScore": 0.9,
"name": "Retail Area"
},
"landuse/vineyard": {
Expand Down
1 change: 1 addition & 0 deletions data/presets/presets/landuse/brownfield.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"landuse": "brownfield"
},
"terms": [],
"matchScore": 0.9,
"name": "Brownfield"
}
1 change: 1 addition & 0 deletions data/presets/presets/landuse/commercial.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"landuse": "commercial"
},
"terms": [],
"matchScore": 0.9,
"name": "Commercial Area"
}
1 change: 1 addition & 0 deletions data/presets/presets/landuse/greenfield.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"landuse": "greenfield"
},
"terms": [],
"matchScore": 0.9,
"name": "Greenfield"
}
22 changes: 22 additions & 0 deletions data/presets/presets/landuse/greenhouse_horticulture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "garden",
"fields": [
"name",
"operator"
],
"geometry": [
"area"
],
"terms": [
"flower",
"greenhouse",
"horticulture",
"grow",
"vivero"
],
"tags": {
"landuse": "greenhouse_horticulture"
},
"matchScore": 0.9,
"name": "Greenhouse Horticulture"
}
1 change: 1 addition & 0 deletions data/presets/presets/landuse/meadow.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"icon": "garden",
"geometry": [
"area"
],
Expand Down
1 change: 1 addition & 0 deletions data/presets/presets/landuse/residential.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"landuse": "residential"
},
"terms": [],
"matchScore": 0.9,
"name": "Residential Area"
}
1 change: 1 addition & 0 deletions data/presets/presets/landuse/retail.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"tags": {
"landuse": "retail"
},
"matchScore": 0.9,
"name": "Retail Area"
}
4 changes: 4 additions & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,10 @@
"key": "landuse",
"value": "greenfield"
},
{
"key": "landuse",
"value": "greenhouse_horticulture"
},
{
"key": "landuse",
"value": "harbour"
Expand Down
4 changes: 4 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4177,6 +4177,10 @@
"name": "Greenfield",
"terms": ""
},
"landuse/greenhouse_horticulture": {
"name": "Greenhouse Horticulture",
"terms": "flower,greenhouse,horticulture,grow,vivero"
},
"landuse/harbour": {
"name": "Harbor",
"terms": "boat"
Expand Down

0 comments on commit 4140535

Please sign in to comment.