Modify

Opened 4 days ago

Last modified 4 days ago

#24856 new enhancement

Allow replace geometry between two existing ways

Reported by: aharvey Owned by: team
Priority: normal Milestone:
Component: Plugin utilsplugin2 Version:
Keywords: Cc:

Description

Within the utilsplugin2/replacegeometry at https://github.com/JOSM/josm-plugins/blob/88770b6d1008a3bc1c445d613b680ec4cde3de1b/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/replacegeometry/ReplaceGeometryUtils.java#L226 it requires one of the ways to be new, however sometimes we want to replace the geometry from an existing way into another existing way.

For example if one mapper drew a new way with a better geometry, we want to use the original way to keep the history, but use the new better geometry, so a simple replace geometry between those two ways will throwout the new way to keep the history, but retain its geometry.

For example:

way A

node 1
node 2
node 3

way B

node 4
node 5
node 6

then we want replace geometry to result in

way A

node 4
node 5
node 6

delete way B
delete node 1
delete node 2
delete node 3

Attachments (0)

Change History (1)

comment:1 by aharvey, 4 days ago

I found some success in asking an LLM to build a new plugin for this https://github.com/andrewharvey/josm-replace-nodes but it's still something I think should be supported in the core.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team 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 team 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.