Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#11505 closed enhancement (fixed)

[PATCH] Load a range of OSM objects

Reported by: windu.2b Owned by: team
Priority: minor Milestone: 15.08
Component: Core Version: latest
Keywords: Cc:

Description

Using a hyphen as a separator, a range of objects IDs can be loaded.
It is easier to write "w1-5" than "w1, w2, w3, w4, w5", and the result is exactly the same.

Attachments (1)

0001-Load-a-range-of-OSM-objects-using-a-hyphen-as-a-sepa.patch (7.0 KB ) - added by windu.2b 9 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by Don-vip, 9 years ago

Summary: Load a range of OSM objects[PATCH] Load a range of OSM objects

comment:2 by Don-vip, 9 years ago

Milestone: 15.06

comment:3 by Don-vip, 9 years ago

Milestone: 15.0615.07

skip milestone 15.06

comment:4 by simon04, 9 years ago

Due to the code around Long.parseLong(m.group(m.groupCount())) - 2, the patch could only parse an interval of exactly 3 object IDs. I'll commit a fixed implementation.

Placing SimplePrimitiveId.fuzzyParse in the OsmIdTextField would have validated any input, such as "foo bar".

Last edited 9 years ago by simon04 (previous) (diff)

comment:5 by simon04, 9 years ago

Resolution: fixed
Status: newclosed

In 8496/josm:

fix #11505 - Download objects: load a range of OSM objects (modified patch by windu.2b)

comment:6 by Don-vip, 9 years ago

Milestone: 15.0715.08

Milestone renamed

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.