Modify

Opened 5 years ago

Closed 4 years ago

Last modified 4 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 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by Don-vip

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

comment:2 Changed 5 years ago by Don-vip

Milestone: 15.06

comment:3 Changed 4 years ago by Don-vip

Milestone: 15.0615.07

skip milestone 15.06

comment:4 Changed 4 years ago by simon04

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 4 years ago by simon04 (previous) (diff)

comment:5 Changed 4 years ago by simon04

Resolution: fixed
Status: newclosed

In 8496/josm:

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

comment:6 Changed 4 years ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.