Preset support of alternative preset items

Stephan Knauss osm at stephans-server.de
Mon Aug 17 20:40:19 UTC 2020


On 17.08.2020 16:29, Simon Poole wrote:
> 
> Some of the recent patches to JOSMs default preset have included
> <preset_link /> elements for what are essentially presets for "similar"
> objects.
> 
> This would seem to be to me quite interesting information to capture,
> however the specific unstructured way of handling this would seem to be
> a bit sub-optimal. 

Can you elaborate a bit more in what way you wish this to be more 
structured?

It is there to list similar tags. Do you want to structure the level of 
"similarity"?

> - add an attribute to the preset_link element, example >      	<preset_link preset_name="Mast" alternative="true" />

So what else besides "alternative" do you suggest?

> - introduce a new element, example
>          <alternative preset_name="Mast" />
I do not see the difference here.
besides "link" for generic links, this "preset_link" already is a link 
specific for alternative presets. What would a new one differentiate?


> - introduce a new element as a container, example
All references to "similar" presets are already known by the presence of 
"preset_link". As you would have either one "alternatives" in case there 
are links, or zero if not, what is the benefit of another container level?

Stephan




More information about the josm-dev mailing list