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



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.