#17818 closed enhancement (fixed)
[Patch] Add tower:type=lighting
Reported by: | anonymous | Owned by: | Klumbumbus |
---|---|---|---|
Priority: | normal | Milestone: | 20.06 |
Component: | Internal preset | Version: | latest |
Keywords: | tower lighting | Cc: | Klumbumbus |
Description
It has its own rendering in osm-carto.
See the wiki https://wiki.openstreetmap.org/wiki/Key:tower:type
Attachments (16)
Change History (40)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Keywords: | tower added |
---|
comment:4 by , 5 years ago
Keywords: | lighting added |
---|---|
Owner: | changed from | to
by , 5 years ago
Attachment: | Communication_tower-14.svg added |
---|
communications_tower icon to be place under presets/landmark/ from File:Communication_tower-14.svg (PD)
by , 5 years ago
Attachment: | Tower_freestanding.svg added |
---|
tower:construction=freestanding icon to be place under presets/landmark/ from File:Tower_freestanding.svg (PD)
by , 5 years ago
Attachment: | Tower_dome.svg added |
---|
General replacement for and tower:construction=dome icon to be place under presets/landmark/ from File:Tower_dome.svg (PD)
by , 5 years ago
Attachment: | Tower_lattice.svg added |
---|
tower:construction=lattice icon to be place under presets/landmark/ from File:Tower_lattice.svg (PD)
by , 5 years ago
Attachment: | Tower_dish.svg added |
---|
tower:construction=dish icon to be place under presets/landmark/ from File:Tower_dish.svg (PD)
by , 5 years ago
Attachment: | Tower_observation.svg added |
---|
tower:type=observation/watchtower icon to be place under presets/landmark/ from File:Tower_observation.svg (PD)
by , 5 years ago
Attachment: | Tower_cantilever_communication.svg added |
---|
tower:type=communication icon to be place under presets/landmark/ from File:Tower_cantilever_communication.svg (PD)
by , 5 years ago
Attachment: | josm_17818_small.patch added |
---|
by , 5 years ago
Attachment: | josm_17818_bigger.patch added |
---|
comment:5 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Summary: | Add tower:type=lighting → [Patch] Add tower:type=lighting |
I have attached two versions, a smaller (josm_17818_small.patch) and a bigger one (josm_17818_bigger.patch).
Both add the missing tower:type
values lighting
and minaret
and additional useful tags to man_made=tower
, plus add a new preset for man_made=communications_tower
(#16898). To use some chunks I did some smaller adjustments to height
, ele
, material
and access
. Additionally, I added some values_sort="false"
to some tags.
The differences between smaller and bigger are:
tower:construction=*
missing in smaller- no multiselect for
tower:type=communication/watchtower
inman_made=communications_tower
in smaller - smaller adds only one new icon and changes one ( to ), while bigger additionally to the two adds five more (, , , and ).
The replacement of by is useful as the first does not look nice in preset menu but not needed.
I came not around to copy some code from Presets/MastAndTower and would love to even add icons for tower:type
but I did not find nice icons for radar and minaret, so far.
Please, try out and tell me which one you like better.
smaller:
bigger:
comment:6 by , 5 years ago
Owner: | changed from | to
---|
comment:7 by , 5 years ago
Cc: | added |
---|
I could even add technology=* and communication:*=*
like communication:radio=* but that might go too far.
What do you think.
comment:8 by , 5 years ago
I think that I'll have a look at the whole tower/mast/communicationtower thing in the next weeks and add internal presets based on your Mast and Tower preset.
comment:9 by , 5 years ago
Ok, then I gonna separate my patch after the holidays to turn the not directly related changes into an own patch.
by , 5 years ago
Attachment: | josm_17818_extra.patch added |
---|
rework of some chunks; lots of missing values_* added to combos
comment:10 by , 5 years ago
Ok, josm_17818_extra.patch contains rework of <chunks>
and lots of missing values_*
.
I did not, yet, work through the whole defaultpresets but it is a start and ready to commit.
Some parts are needed for the tower parts below, so, this needes to be committed first/together.
josm_17818_tower_small_v2.patch and josm_17818_tower_bigger_v2.patch contain the tower specific parts, only.
comment:11 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → assigned |
follow-up: 14 comment:13 by , 5 years ago
I picked out the relevant parts of josm_17818_extra.patch. Some remarks:
- no values_sort="false" if unneeded or for cases without clear order (e.g. voltage, surface, map_type,...), better keep consistent alphabetical order and only disable it in exceptional cases
- no chunks for simple single tags (e.g. placement, incline, height,...)
- no unneeded comments for chunks (e.g. <!-- internet -->)
- no values_i18n="false" for numbers, these are excluded anyway
- please don't mix different things in such a big patch
follow-up: 15 comment:14 by , 5 years ago
Replying to Klumbumbus:
I picked out the relevant parts of josm_17818_extra.patch. Some remarks:
- no chunks for simple single tags (e.g. placement, incline, height,...)
Why? If there are many values or a description which needs to be copied and changed in every place a chunk is much easier to handle.
- please don't mix different things in such a big patch
Yeah, sorry, next time I'll split, right away.
comment:15 by , 5 years ago
Replying to skyper:
Replying to Klumbumbus:
I picked out the relevant parts of josm_17818_extra.patch. Some remarks:
- no chunks for simple single tags (e.g. placement, incline, height,...)
Why? If there are many values or a description which needs to be copied and changed in every place a chunk is much easier to handle.
Using chunks all over the place doesn't make the code easier, it just moves the actual code away to another place.
- please don't mix different things in such a big patch
Yeah, sorry, next time I'll split, right away.
I also meant the josm_17818_extra.patch. It combines changes of values_sort, values_i18n, preset_link, chunks, intendation changes,... which makes the patch hard to understand. Including only one of these in a patch makes it a lot easier and thus will make the patch be applied much faster.
comment:19 by , 5 years ago
Priority: | minor → normal |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:20 by , 5 years ago
Milestone: | → 20.06 |
---|
follow-up: 23 comment:22 by , 5 years ago
@skyper: At wiki:/Presets/MastAndTower in "Big communication tower" you use watchtower, but meant observation, right? This is even wrong on https://wiki.openstreetmap.org/wiki/Tag:man_made%3Dcommunications_tower#Useful_combinations
follow-up: 24 comment:23 by , 5 years ago
Replying to Klumbumbus:
@skyper: At wiki:/Presets/MastAndTower in "Big communication tower" you use watchtower, but meant observation, right? This is even wrong on osmwiki:Tag:man_made=communications_tower#Useful_combinations
You are right, I changed it in the preset which will be outdated in a few weeks anyway. The OSM wiki page still need adjustment.
related to #16412 and #10759