Opened 10 years ago

Closed 8 years ago

#1979 closed defect (fixed)

2000 node API limitation

Reported by: John Smith Owned by: Tom Hughes
Priority: major Milestone:
Component: api Version:
Keywords: Cc: John Smith, Shaun McDonald


Due to this limitation any ways that exist in the system already, such as the ABS boundaries for Australia, cannot be easily altered in any way without getting errors back when you attempt to upload changes to the system.

Either the limitation needs to be relaxed, or any way in the system that exceeds 2000 nodes needs to be split.

Change History (10)

comment:1 Changed 10 years ago by Thomas Wood

Resolution: wontfix
Status: newclosed

Yes, the limitation is intended, split the way manually and use multipolygons (if an area).

comment:2 Changed 10 years ago by John Smith

Resolution: wontfix
Status: closedreopened

For ways with > 4000 nodes it doesn't seem possible to split them, at least not easily or at all in JOSM or potlatch, if there is an easy way please let me know because last time I tried the way was completely deleted and I had to rejoin the nodes manually.

comment:3 Changed 10 years ago by Shaun McDonald

Cc: Shaun McDonald added

Give me the way ids, and I'll see what I can do for you.

comment:4 Changed 10 years ago by John Smith

I can only give you examples as I come across them, but take this way for example, it has over 15,000 nodes...

All attempts to do anything with it results in errors.

Also wouldn't there be a way to find these ways with large numbers of nodes and split them automatically so it doesn't cause problems for anyone?

comment:5 Changed 10 years ago by Shaun McDonald

I have fixed the above boundary in the following changeset

comment:6 Changed 10 years ago by John Smith

How did you fix it so I don't need to file bugs about each way with > 4000 nodes ?

comment:7 Changed 10 years ago by Shaun McDonald

I downloaded the full version of that way. Loaded it into JOSM. Roughly every 500-1500 nodes along, I zoom in and download that area, and then split the way. I do this repeatedly until there is no way more than 2000 nodes in the downloaded data. The current selection panel on the right is useful for this, as it tells you the number of nodes in a way.

comment:8 Changed 10 years ago by John Smith

Before when I tried that with JOSM it seems it was deleting the way and then uploading each step, and since the first break would still have a way over 2000 nodes it was failing to accept the changes.

comment:9 Changed 10 years ago by Shaun McDonald

I'm using the default atomic diff upload. If you have switched to old style non-atomic upload, it may not work. I'm hitting the button P to split the way.

comment:10 Changed 8 years ago by Tom Hughes

Resolution: fixed
Status: reopenedclosed

I believe all the overlong ways were split up some time ago.

Note: See TracTickets for help on using tickets.