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

Hi I want to delete a long linear way. I know it's id so I download just that object.

It's attached to other objects, so JOSM throws conflict errors & insists that the offending objects are also downloaded and then the user can decide if they want to keep them. Due to it being a long object, JOSM doesn't allow all the data to be d/l in one go. This is frustrating. Is there a way to tell JOSM to default to retaining all the nodes of the other objects?

In Potlach there's never a problem, it deletes the linear object & automatically keeps the previously shared nodes.

I'm struggling to see a scenario when a node that's still in use by another object would want to be deleted.

asked 12 Mar '22, 23:45

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

Hi

I'm struggling to see a scenario when a node that's still in use by another object would want to be deleted.

It depends on the types of objects I guess, but for example when two buildings were attached, and you delete one, if the common nodes were not the corners of the remaining one, I would delete them. Nodes along a straight way are useless, and sometimes even confusing IMHO.

The same can happen with roads I think. A simple rule could, if removing the (untagged of course) node from the remaining object doesn't change its geometry, then let's delete it !

My 2 cents.

(13 Mar '22, 17:41) H_mlet

There's a "download along" tool that will allow you to download all objects within a certain distance of an object. I can't remember whether this built in or a plugin. Once all of the nodes are withing download regions I think it should automatically retain shared nodes.

permanent link

answered 13 Mar '22, 12:58

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

It's been part of the core for some time now. Here is the doc about it. But it's only based on distance. Based on the question, it would be best to download only the connected objects. Because choosing the right distance might prove tricky.

(13 Mar '22, 17:45) H_mlet

I think you can instruct JOSM to download all parent objects of what you have selected, which would get you the other objects referencing your way, and therefore - in a similar way as stated by InsertUser - not remove those nodes still required for those other ways.

permanent link

answered 13 Mar '22, 14:31

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

If I understand the doc correctly, and you are indeed talking about this "Download object" with referrers functionnality, it is meant for ways and relations. You can't download ways that are connected via nodes with it.

(13 Mar '22, 17:48) H_mlet

My bad, reading that bug report, it seems if you download the nodes with this, you'll get all the referencing ways... But you would have to specify all the nodes, if it's a really long way, with lots of nodes, this can get cumbersome...

(13 Mar '22, 17:52) H_mlet
1

I think he means select all and use Download Parent Ways And Relation. Although I suspect JOSM would warn anyway.

(13 Mar '22, 17:53) InsertUser

@InsertUser well it makes sense, if you download the way, select all its nodes, hit Ctrl+Alt+D and then delete the way, it should be good, no ?

There will be a warning about working in an undownloaded area, but there should be no conflict, I think.

(13 Mar '22, 18:33) H_mlet

Hi

As the others, I can't answer your original question about an option to just let the nodes be.

But here is an overpass query, that loads all intersecting ways, to a specified one. The result is quite big, because this ferry line intersect the Irish boundaries and coastline, but that's just an example ! ;-)

You can refine this query to your need, even filtering by type of way (or maybe only ways and not relations), then you can use JOSM download from overpass functionality.

Hope this helps.

Best regards.

permanent link

answered 13 Mar '22, 18:29

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

If understand question correctly. Example: massive (BS object) landuse=farmland connected to roads forest etc. want shrink (delete) it and draw 50 proper farmland, grassland etc., but do not want to download whole area with 100k nodes just avoid deleting nodes connected to it. Safely unglue (G) it.

Select way. Using plugin 'utilsplugin2' or can be done with search (Ctrl-F) and 'child selected'. Selection > Select way nodes (Ctrl+Shif-N) Shift select way too in case. Edit > Copy (Ctrl-C). File > Download object... Object type: mixed | Object ID: should be there after Copy. Download objects.

I don't know if it will help and only solution working in JOSM for me. Maybe exist simple "one-click" solution, I can't find any. Other suggestion/tools don't work, atleast for me.

permanent link

answered 24 Jun '22, 22:29

mindedie's gravatar image

mindedie
112
accept rate: 0%

edited 24 Jun '22, 22:43

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
×102
×27
×5

question asked: 12 Mar '22, 23:45

question was seen: 2,445 times

last updated: 24 Jun '22, 22:43

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