This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Convert a Polygon ( Close way ) to a node with its tags.

0

How can I convert a Building/Close way/Polygon to a node in the Center of the Object and hold the object tags (Using JOSM) ??

asked 10 Jul '19, 21:37

maher_elgammal's gravatar image

maher_elgammal
11112
accept rate: 0%


One Answer:

0

I do not understand why one would like to do such thing but there may be situations suggesting such a simplification.

That's not too difficult with JOSM:

  • create an "empty" new node
  • select the "old" way
  • copy it with "Ctrl-c"
  • select the new node
  • paste the way's propertys into the node with "Shift-Ctrl-V"
  • add a friendly note Tag to the new node containing "way/nnnnn" with nnnn being the id of the old way. doing this you keep a hint to the history of this object in OSM. I think that is important.
  • now you may delete the "old" way. (perhaps also containing the id of it in the changeset comment)
This answer is marked "community wiki".

answered 15 Jul '19, 11:01

village's gravatar image

village
1113
accept rate: 0%

Source code available on GitHub .