Modify

Opened 4 days ago

Last modified 3 days ago

#24854 new enhancement

Support exchanging way nodes via comfort0

Reported by: aharvey Owned by: simon04
Priority: normal Milestone:
Component: Plugin comfort0 Version:
Keywords: Cc:

Description

In my mapping use case, I way A which I want to retain in OSM with full history, and way B which I want to delete from OSM, however I'd like way A to drop/delete all of it's original nodes, and instead use the nodes from way B.

In other words swap the geometry from way B to way A.

More Tools > Replace Geometry doesn't work since both ways are already in the database.

I thought I could do this with level0, just move the nodes from way B to way A and then delete the way A nodes, but,

  1. when I did that, nothing happened
  2. when I tried to use "-way" to remove a way with level0, I just got an error that an unexpected exception occured.

Attachments (0)

Change History (3)

comment:1 by aharvey, 4 days ago

`
net.simon04.comfort0.level0l.parsergen.TokenMgrError: Lexical error at line 1, column 2. Encountered: 'w' (119), after prefix "-"

at net.simon04.comfort0.level0l.parsergen.Level0LParserTokenManager.getNextToken(Level0LParserTokenManager.java:756)
at net.simon04.comfort0.level0l.parsergen.Level0LParser.jj_ntk_f(Level0LParser.java:838)
at net.simon04.comfort0.level0l.parsergen.Level0LParser.primitives(Level0LParser.java:14)
at net.simon04.comfort0.EditLevel0LAction.readLevel0(EditLevel0LAction.java:111)
at net.simon04.comfort0.EditLevel0LAction.readLevel0(EditLevel0LAction.java:105)
at net.simon04.comfort0.EditLevel0LAction.awaitEditing(EditLevel0LAction.java:96)
at net.simon04.comfort0.EditLevel0LAction.lambda$editLevel0$0(EditLevel0LAction.java:80)
at java.base/java.lang.Thread.run(Thread.java:1583)

`

comment:2 by aharvey, 3 days ago

for my specific use case I found asking an LLM to build a plugin worked better https://github.com/andrewharvey/josm-replace-nodes, but it would still be nice to have the ability to do this via level0 too.

comment:3 by GerdP, 3 days ago

I recently had the same use case with two building outlines and solved it by drawing a new way using the Follow line action so that I could use the Replace geometry action later. Of course more manual actions, but good enough for this rare case.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain simon04.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from simon04 to the specified user.
Next status will be 'needinfo'. The owner will be changed from simon04 to aharvey.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from simon04 to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.