You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-08-03 15:19:26

rmikke
Moderator
From: Warszawa
Registered: 2014-11-14
Posts: 2,032
Website

Relation in JOSM preset

Is there a way to create a JOSM preset that automatically adds the node to the relation?
Member_expression looks promising, but I can't find a good guide how to use it...

Offline

#2 2015-08-07 19:20:00

rmikke
Moderator
From: Warszawa
Registered: 2014-11-14
Posts: 2,032
Website

Re: Relation in JOSM preset

rmikke wrote:

Is there a way to create a JOSM preset that automatically adds the node to the relation?
Member_expression looks promising, but I can't find a good guide how to use it...

Seems that any thread, any language I know - this question is enough to kill the thread.

Really, NOBODY knows how it works?

Last edited by rmikke (2015-08-07 19:20:16)

Offline

#3 2015-08-08 11:58:29

escada
Moderator
Registered: 2011-08-13
Posts: 1,754

Re: Relation in JOSM preset

I have never tried it, sorry.

Right now I often select the things that have to go in the relation and then start the preset that creates the relation. I do this e.g. for a turn restriction. Select from way - intesection node - to way. They are all three placed in the relation, in that order. I still have to add the roles.
I guess that the member_expression is just a way to filter the "object" that you have selected before launching the preset. But don't know for sure.

Offline

#4 2015-08-21 21:31:06

Klumbumbus
Member
From: Erzgebirgskreis
Registered: 2014-01-12
Posts: 630
Website

Re: Relation in JOSM preset

Please explain in more detail, what you want to do with the preset.
Select a node and a relation, then apply the preset to make the node a part of the relation? Do you mean it this way?

Preset code is explained here https://josm.openstreetmap.de/wiki/TaggingPresets
The default JOSM preset code is here: http://josm.openstreetmap.de/browser/jo … resets.xml

Offline

#5 2015-08-23 00:19:24

rmikke
Moderator
From: Warszawa
Registered: 2014-11-14
Posts: 2,032
Website

Re: Relation in JOSM preset

Klumbumbus wrote:

Please explain in more detail, what you want to do with the preset.
Select a node and a relation, then apply the preset to make the node a part of the relation? Do you mean it this way?

No, I want to create a specific preset for automatic bicycle rental station in a specific network in Warsaw and all the station should belong to a specific relation (and have some other tags set to specific values). So I have created a preset that sets all the values, but I don't know how to add a rental station to a relation (all stations should belong to "Veturilo" relation.

What I want is a preset, that only asks for station's name, number and capacity, automatically sets other tags (network name, operator...) and automatically adds the station to the "Veturilo" relation.

Offline

#6 2015-08-23 12:07:28

Klumbumbus
Member
From: Erzgebirgskreis
Registered: 2014-01-12
Posts: 630
Website

Re: Relation in JOSM preset

No, this is not possible with a JOSM preset.
Besides, what you describe sounds much like a superfluous "collective relation". (http://wiki.openstreetmap.org/wiki/Rela … Categories)
You can search for those pois with a simple overpass querry: open http://overpass-turbo.eu/ click on wizard and type amenity=bicycle_rental in warsaw

Offline

Board footer

Powered by FluxBB