Modify

Opened 11 years ago

Closed 4 years ago

Last modified 4 years ago

#8396 closed defect (fixed)

Replace geometry: save node ids

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Plugin utilsplugin2 Version: latest
Keywords: Replace Geometry reuse nodes Cc: naoliv

Description

Often i use replace geometry to merge a new building, with an addressnode. The way exists of new nodes (not in the osm database) because i made the geometry finer and old nodes (with an id).
Today the function inserts the old node in the new way to preserve history. But sometimes it deletes known nodes and leaves new nodes in the way.
Replace Geometry should search in the geometry to find a node which has no known id (aka negative id) if possible.

Attachments (1)

josm_8396_sample.osm (2.3 KB ) - added by skyper 4 years ago.
example file

Download all attachments as: .zip

Change History (10)

comment:1 by skyper, 9 years ago

See also #9929

comment:2 by simon04, 9 years ago

Keywords: Replace Geometry added

comment:3 by naoliv, 8 years ago

Cc: naoliv added

comment:4 by Don-vip, 7 years ago

Priority: minornormal
Summary: UtilsPlugin2-> Replace Geometry should try to save node idsReplace geometry: save node ids

comment:5 by Don-vip, 7 years ago

Ticket #9929 has been marked as a duplicate of this ticket.

by skyper, 4 years ago

Attachment: josm_8396_sample.osm added

example file

comment:6 by skyper, 4 years ago

Just hit this again. It seems to depend on the distance and/or if multiple way child nodes with id > 0 are closer.

I would say, this is a defect.

Please, find attached example file: josm_8396_sample.osm

  1. Search type:node id:0
  2. Select address node and building surrounding the node
  3. Replace geometry
  4. Search type:node id:0
  5. Search all objects for type:node deleted -id:0

Find a deleted node but there are way child nodes with id=0 and only one parent.
If the address node is move close to a node with id:0 the node id is swapped.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-08-04 23:38:35 +0200 (Tue, 04 Aug 2020)
Revision:16850
Build-Date:2020-08-05 01:30:51
URL:https://josm.openstreetmap.de/svn/trunk

Plugins:
+ utilsplugin2 (35487)
Last edited 4 years ago by skyper (previous) (diff)

comment:7 by skyper, 4 years ago

Type: enhancementdefect

comment:8 by GerdP, 4 years ago

Resolution: fixed
Status: newclosed

In 35617/osm:

fix #8396: Replace geometry: save node ids

  • "Upgrade a node to a way or multipolygon": try first to find closest new node
  • fix some sonarlint and javadoc issues

comment:9 by GerdP, 4 years ago

In 35618/osm:

see #8396: Replace geometry: save node ids
dist

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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