NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

4
1

I'm working on large multipolygons in northern Thailand which is giving me fits. My previous questions relating to this topic have been about splitting them. But I've given up on that for now in favor of simply modifying them to better suit the actual terrain. Which brings me to my present question: There is one way (id:140856543) which is a member of 7 multipolygons, 5 boundary relations and 2 wood multipolygons. If I want to modify only one of the wood multipolygons I change all the others with it, which is not what I want.

How do I select only the relation that I want to edit?

Added this screenshot of the way in question alt text

asked 11 Jan '15, 08:00

AlaskaDave's gravatar image

AlaskaDave
5.4k76107164
accept rate: 16%

edited 11 Jan '15, 14:14

That is the disadvantage when mappers combine objects where they shouldn't.
IMHO you should remove the boundary way from the wood polygons and either create one from the boundary separate way both wood MPs do share or one way per wood MP as scai explains

(11 Jan '15, 11:56) malenki

I don't know if you are overly familiar with relations so if I am being overly basic in my instruction please excuse me but scai has outlined the actions required above in his post so I will just expand on his instruction. The instruction is applicable anytime you wish to remove or add something from a relation, regardless if there is 1 or 7 relations sharing the same way.

First thing to note, you don't work on just one relation when you are doing these steps until you get to point # 4 below. Your actions affect all relations that share the way you are working on. This is not a reason for you not to proceed, just something you need to be aware of.

I am also assuming your question relates to adding or removing ways to existing relations to allow you to add/remove bits to the forest.

  1. In my video, at 19:20 you will see I select a node and split the way and then select another node and split again. This is to allow me to select the section I want to remove and only that section. Do this with your relation when you have a beginning and end node for the bit you want to modify. This isolates the section you want to remove/extend/modify
  2. Next, at one of the points at which you split your relation, you want to draw a new way which reflects where you want your relation to be. The way should start where you did one of your splits and end where you did your other split so that once you edit the relation members you will still have a closed loop
  3. Now select the section you split earlier
  4. In the relation window, select the relation for your wood/forest and select edit
  5. In the window that opens up, the way you split earlier will be highlighted, click the trashcan to remove it from your wood/forest relation
  6. Now, without closing the relation editor, in the background, click on the new way you drew, it will show up on the right hand side of the relations editor, click one of the pink/blue buttons to add it to your relation
  7. Now click the A>Z button. Does your relation show a loop? If yes, happy days, save your change and upload, if not let me know

Note, the video will go through the adding/deleting bits out of the relation from 19:00 onwards just incase you need something else to reference against

permanent link

answered 11 Jan '15, 14:33

DaCor's gravatar image

DaCor
1.3k11129
accept rate: 2%

edited 11 Jan '15, 14:34

2

@DaCor,

Thanks very much. It's complicated but at least I understand what needs to be done now. As malenki says above, "That is the disadvantage when mappers combine objects where they shouldn't." I second that comment entirely. National and province boundaries must be superimposed but using those same ways for wood multipolygons was a bad idea.

Thanks for your detailed instructions and for making such a comprehensive video.

Cheers, Dave

(12 Jan '15, 00:44) AlaskaDave
2

There is no problem with utilising the same ways for multiple relations, I often do it. It makes more sense to do it sometimes. Other time, not so much and those times I don't.

Its fine so long as you know what you are doing and it only takes a bit of concentrated learning to get up to speed

(12 Jan '15, 19:31) DaCor
3

I agree,and I too have done that on occasion. Lakes or reservoirs in heavily forested regions are good examples. But here there are large natural=wood multipolygons on either side of the national boundary which is entirely inside the wooded area for many miles. A straight line would have achieved the same purpose. But then I would have been deprived of a good learning experience <g>

Thanks again...

(13 Jan '15, 00:20) AlaskaDave
1

lol, thats a good way to look at it I suppsoe

(13 Jan '15, 00:29) DaCor

To change the geometry of a relation you have to change its members. Because you don't want to change the geometry of all relations you will have to create a new way. The steps are as follows:

  • Remove way 140856543 from the wood relation you want to change. You might have to split it first if the first and last nodes don't match exactly the start and end point of your intended geometry changes.
  • Draw a new way representing the section of the geometry that differs from the existing relations.
  • Add the new way to the wood relation.
  • Make sure the wood relation is closed again. JOSM's relation editor has a nice sort function where you can check whether the relation is closed.
  • Check whether the other relations you touched are still correct.
permanent link

answered 11 Jan '15, 09:20

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 11 Jan '15, 09:21

@scai, I need to better understand what you're saying. Are you telling me I should edit the particular multipolygon I'm interested in, search for the way numbered 140856543, remove it or split it or recreate it in some way, and then reattach it somehow?

Perhaps way 140856543 is the entire wood multipolygon, all 152 nodes of it. If I split it, aren't I also affecting that way in the other six relations?

(11 Jan '15, 14:31) AlaskaDave

No, don't reattach it, reattach a newly created way instead. Remove it from the wood multipolygon so that way 140856543 is only used by the other relations but not by the wood multipolygon any more. Then create a new way just for your wood multipolygon and add it to the wood relation. Or in other words: Separate the relations by making them consist of individual ways. Sharing the same ways leads to the same geometry, a different geometry is only possible by using individual ways.

(11 Jan '15, 14:38) scai ♦
1

Okay, got it. I understand now. It's still going to be quite a task and I might defer it until I have enough time to finish all I want to do. I will simplify those multipolygons as I go so the next person who comes along won't have to deal with the multiple use problem.

Thanks very much.

(12 Jan '15, 00:38) AlaskaDave

I've covered something similar to this as part of the Irish Townland mapping project. This section of the tutorial video should show you what to do

https://www.youtube.com/watch?v=WG6Po8SmweE&feature=youtu.be&t=16m55s

permanent link

answered 11 Jan '15, 11:36

DaCor's gravatar image

DaCor
1.3k11129
accept rate: 2%

edited 11 Jan '15, 11:43

@DaCor,

I can already do what you show in your otherwise helpful video. In your example, you have a single relation with no others "on top" of it. In my situation I have 7 relations using the same way. Short of deleting a multipolygon and starting from scratch, something I'm never going to do, how can I separate the wood polygon of interest from the others before modifying it?

(11 Jan '15, 13:59) AlaskaDave

You can only separate them by removing ways and adding new ones, as shown in DaCor's video tutorial and described in my answer. These relations are only "bound" together because they share the same ways, to fix this you have to make them use individual ways instead.

(11 Jan '15, 14:30) scai ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×622
×352
×236

question asked: 11 Jan '15, 08:00

question was seen: 5,667 times

last updated: 13 Jan '15, 00:29

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum