#21398 closed enhancement (fixed)
[Patch] Update power plant related preset
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 21.10 |
Component: | Internal preset | Version: | |
Keywords: | power plant method heliostat | Cc: | francois.lacombe |
Description (last modified by )
I split this of #21396 where plant:method
is one part.
I see some possible improvements:
- add icons to values of
plant:source
using the icons forgenerator:source
- changing the combo into a multiselect?
- add
power:method
- This probably leads to own presets per
plant:source
as only some methods are valid for each source- Do we find different icons and/or should we use different background colors per source?
- This probably leads to own presets per
- add new preset for power=heliostat
Some validator warnings might be useful, see #21399
Attachments (6)
Change History (24)
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
Owner: | changed from | to
---|
comment:3 by , 3 years ago
by , 3 years ago
Attachment: | heliostat.svg added |
---|
reworked heliostat icon to be placed under presets/power/; own work
comment:4 by , 3 years ago
Owner: | changed from | to
---|---|
Summary: | Update power plant related preset → [Patch] Update power plant related preset |
Ok, I reworked my own icon a bit:
Please, find attached josm_21396.patch which:
- adds
power=heliostat
to preset and style - adds a new group for
power=plant
with a general preset and one for eachplant:source
- multiselect with icons
plant:source
for general preset but noplant:method
- correct
plant:method
perplant:source
in individual plant presets
- multiselect with icons
match="none"
togenerator:method
with only one value inpower:generator
presets, to have working presets links withoutgenerator:method
- I moved the wiki links of
power:generator
up, to follow common practice.
- I moved the wiki links of
I was not able to hide the general preset with match_expression=""
but I do not like to add plant:method
to the general preset as values depend on the plant:source
.
Some wiki pages for values of plant:source
are not written, yet, so I used the power plan page form them.
Regarding icons, I use the same icon for all presets and I think different background is possible but different icons per source would be much nicer.
Please, test. Comments welcome.
comment:5 by , 3 years ago
Milestone: | → 21.09 |
---|
comment:9 by , 3 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Heureka, I got the match_expression to work: josm_21398_match_expression.patch
comment:10 by , 3 years ago
Hello Skpyer
As always it's great work what is done here, thank you.
It's a detail but I'm not sure it's ok to make plant:source
as a multiselect. It's pretty always a single value which is expected here.
https://taginfo.openstreetmap.org/keys/plant%3Asource#values
The same for generator:source, generator:method and generator:type
Ok for icons anyway.
All the best
follow-up: 12 comment:11 by , 3 years ago
I found some plants in the wild with multiple sources and it is written in the wiki that multiple values are valid. Therefore I used a multiselect but nt method. With working match_expression, there will always be only one preset link.
Do you fear, users will add too maany or wrong sources with the multiselect? I like to give the user the option and informationn that multiple values are allowed but I can change it back to a combo if you think it is saver.
comment:12 by , 3 years ago
Multiple plant sources are okay. See for example District heating. There is even a gif where the sources are listed. Also, in our city, geothermal energy and gas are used in conjunction in these plants. It may be the minority, but correct.
by , 3 years ago
Attachment: | josm_21398_new_icons.tar.xz added |
---|
new icons derived from existing plant icon
by , 3 years ago
Attachment: | josm_21398_u2.patch added |
---|
update v2: adds icons with background color for source
comment:13 by , 3 years ago
Ok, I spend my time with icons and added different background colors per source for the power plants. Additionally the power source icons source code looked strange and I cleaned it up. See update v2 plus new icons.
We can usually save 25-75% of image file size by using plain svg and cleaning up the source code by removing unused objects/paths. I do not know if this makes a difference in performance, though.
comment:15 by , 3 years ago
Indeed I mistaken a bit about plant:source
by looking at big plants only. It's ok with multiple values.
With #21399 we'll be able to check consistency between plant source and generators.
Icons are fine for me
by , 3 years ago
Attachment: | josm_21398_u3.patch added |
---|
update v3: adds "generator:plant" to generator presets
comment:16 by , 3 years ago
As it came up in #21399, the approved generator:plant
is missing in defaultpresets. I took the chance and added it to this update: josm_21398_u3.patch
Ok, I found an icon for heliostat but I fear I cannot hide a general preset, atm, see my comment 7 on #20843.