Modify

Opened 15 years ago

Closed 15 years ago

#3812 closed defect (fixed)

"Placeholder IDs must be unique for created elements" after using Lakewalker or tracing many nodes manually

Reported by: avarab@… Owned by: team
Priority: blocker Milestone:
Component: Plugin lakewalker Version: tested
Keywords: Cc:

Description

  1. Use lakewalker to trace a bunch of lakes
  2. End up with this data
$ grep "id='-" unique-fail.osm |perl -pe "s/.*id='(.*?)'.*/\$1/"|sort -n|uniq -c|sort -n|tail -n15
      1 -97
      1 -98
      1 -99
      2 -464
      2 -465
      2 -466
      2 -467
      2 -468
      2 -469
      2 -470
      2 -471
      2 -472
      2 -473
      2 -474
      2 -567

The data has a bunch of duplicate ways, e.g.:

  <way id='-567' visible='true'>
    <nd ref='-467' />
    <nd ref='-468' />
    <nd ref='-469' />
    <nd ref='-470' />
    <nd ref='-471' />
    <nd ref='-464' />
    <nd ref='-465' />
    <nd ref='-466' />
    <nd ref='-472' />
    <nd ref='-473' />
    <nd ref='-474' />
    <nd ref='-467' />
    <tag k='source' v='Landsat' />
    <tag k='natural' v='water' />
  </way>
  <way id='-567' visible='true'>
    <nd ref='-467' />
    <nd ref='-468' />
    <nd ref='-469' />
    <nd ref='-470' />
    <nd ref='-471' />
    <nd ref='-464' />
    <nd ref='-465' />
    <nd ref='-466' />
    <nd ref='-472' />
    <nd ref='-473' />
    <nd ref='-474' />
    <nd ref='-467' />
    <tag k='source' v='Landsat' />
    <tag k='natural' v='water' />
  </way>

How do I fix this?

Attachments (3)

unique-fail.osm.bz2 (52.2 KB ) - added by avarab@… 15 years ago.
A .osm file with a bunch of duplicate objects with negative IDs
unique-fail.patch (2.4 KB ) - added by avarab@… 15 years ago.
A version of unique-fail.osm that's been manually fixed up
JOSM_error - duplicatenode - part.osm (10.1 KB ) - added by RichardB 15 years ago.
Error in OSM file created by JOSM

Download all attachments as: .zip

Change History (6)

by avarab@…, 15 years ago

Attachment: unique-fail.osm.bz2 added

A .osm file with a bunch of duplicate objects with negative IDs

by avarab@…, 15 years ago

Attachment: unique-fail.patch added

A version of unique-fail.osm that's been manually fixed up

by RichardB, 15 years ago

Error in OSM file created by JOSM

comment:1 by RichardB, 15 years ago

Version: latesttested

I have also had a similar error - this time I was tracing manually using JOSM-tested (2255). Whilst tracing, an error message popped up saying something like "An error has occured - this is always a coding error". I tried to save my edits and it failed saying there were duplicate placeholders. I saved a copy of the code and there were two nodes with id '-83' - and the coordinates were identical. I checked the JOSM editing window and found them - and there were two nodes on the same spot. I deleted one of the node '-83's and both disappeared and this enabled me to upload. See attached excerpt of the original .osm ("JOSM_error - duplicatenode - part.osm") file before removing the duplicated nodes.

comment:2 by anonymous, 15 years ago

Summary: "Placeholder IDs must be unique for created elements" after using Lakewalker"Placeholder IDs must be unique for created elements" after using Lakewalker or tracing many nodes manually

comment:3 by stoecker, 15 years ago

Component: CorePlugin lakewalker
Resolution: fixed
Status: newclosed

Should be fix in recent update. Reopen if not.

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.