Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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 skyper)

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 for generator: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?

Some validator warnings might be useful, see #21399

Attachments (6)

heliostat.svg (7.7 KB ) - added by skyper 3 years ago.
reworked heliostat icon to be placed under presets/power/; own work
josm_21396.patch (28.3 KB ) - added by skyper 3 years ago.
patch
josm_21398_match_expression.patch (1.7 KB ) - added by skyper 3 years ago.
working match_expression
josm_21398_new_icons.tar.xz (1.1 KB ) - added by skyper 3 years ago.
new icons derived from existing plant icon
josm_21398_u2.patch (75.9 KB ) - added by skyper 3 years ago.
update v2: adds icons with background color for source
josm_21398_u3.patch (76.3 KB ) - added by skyper 3 years ago.
update v3: adds "generator:plant" to generator presets

Download all attachments as: .zip

Change History (24)

comment:1 by skyper, 3 years ago

Description: modified (diff)

comment:2 by skyper, 3 years ago

Owner: changed from team to skyper

comment:3 by skyper, 3 years ago

Ok, I found an icon for heliostat but I fear I cannot hide a general preset, atm, see my comment 7 on #20843.

by skyper, 3 years ago

Attachment: heliostat.svg added

reworked heliostat icon to be placed under presets/power/; own work

by skyper, 3 years ago

Attachment: josm_21396.patch added

patch

comment:4 by skyper, 3 years ago

Owner: changed from skyper to team
Summary: Update power plant related preset[Patch] Update power plant related preset

Ok, I reworked my own icon a bit: reworked heliostat icon to be placed under presets/power/; own work reworked heliostat icon to be placed under presets/power/; own work

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 each plant:source
    • multiselect with icons plant:source for general preset but no plant:method
    • correct plant:method per plant:source in individual plant presets
  • match="none" to generator:method with only one value in power:generator presets, to have working presets links without generator:method
    • I moved the wiki links of power:generator up, to follow common practice.

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 skyper, 3 years ago

Milestone: 21.09

comment:6 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18264/josm:

fix #21398 - Update power plant related preset (patch by skyper)

  • add power=heliostat to preset and style
  • add a new group for power=plant with a general preset and one for each plant:source
    • multiselect with icons plant:source for general preset but no plant:method
    • correct plant:method per plant:source in individual plant presets
  • match="none" to generator:method with only one value in power:generator presets, to have working presets links without generator:method
    • move the wiki links of power:generator up, to follow common practice.

comment:7 by Don-vip, 3 years ago

In 18268/josm:

see #21398 - fix typo

comment:8 by Don-vip, 3 years ago

Milestone: 21.0921.10

Milestone renamed

by skyper, 3 years ago

working match_expression

comment:9 by skyper, 3 years ago

Resolution: fixed
Status: closedreopened

Heureka, I got the match_expression to work: josm_21398_match_expression.patch

comment:10 by francois.lacombe, 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

comment:11 by skyper, 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 not for method. With working match_expression, there will always be only one preset link.

Do you fear, users will add too many or wrong sources with the multiselect? I like to give the user the option and information that multiple values are allowed but I can change it back to a combo if you think it is saver.

Last edited 3 years ago by skyper (previous) (diff)

in reply to:  11 comment:12 by gaben, 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 skyper, 3 years ago

Attachment: josm_21398_new_icons.tar.xz added

new icons derived from existing plant icon

by skyper, 3 years ago

Attachment: josm_21398_u2.patch added

update v2: adds icons with background color for source

comment:13 by skyper, 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.

Last edited 3 years ago by skyper (previous) (diff)

comment:14 by skyper, 3 years ago

New icons are in separate file.

comment:15 by francois.lacombe, 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 skyper, 3 years ago

Attachment: josm_21398_u3.patch added

update v3: adds "generator:plant" to generator presets

comment:16 by skyper, 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

Last edited 3 years ago by skyper (previous) (diff)

comment:17 by Don-vip, 3 years ago

Resolution: fixed
Status: reopenedclosed

In 18286/josm:

fix #21398 - Update power plant related preset (patch by skyper)

comment:18 by Don-vip, 3 years ago

Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.