Modify

Opened 13 years ago

Closed 13 years ago

#6386 closed enhancement (wontfix)

[PATCH needs rework] New download selector: area around given node

Reported by: brycenesbitt Owned by: team
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description

I submit this new feature for consideration:

A new input method for the "Download from OSM" dialog box. Given an OSM element ID number,
it finds the center point and loads small additional area on each side.
Very handy if you've found a problem element in an XML or database dump.

This is similar to the existing "load areas around places" input method.

Attachments (3)

IdNumberSelection.java (3.8 KB ) - added by brycenesbitt 13 years ago.
Patch: new download option "area around given node ID"
IdNumber.patch (4.8 KB ) - added by brycenesbitt 13 years ago.
Patch: new download option "area around given node ID"
IdNumberSelection.2.java (6.2 KB ) - added by brycenesbitt 13 years ago.
Expanded version. Still needs work: turns out to be tricker than anticipated. Ways returned from the OSM API 0.6 don't include a bounding box. One apparently needs to load every single node and calculate the extents. It may make this entire proposed feature unworkable.

Download all attachments as: .zip

Change History (11)

by brycenesbitt, 13 years ago

Attachment: IdNumberSelection.java added

Patch: new download option "area around given node ID"

comment:1 by bastiK, 13 years ago

Can you add a normal patch?

by brycenesbitt, 13 years ago

Attachment: IdNumber.patch added

Patch: new download option "area around given node ID"

comment:2 by bastiK, 13 years ago

This is some kind of shortcut, right? We already have File > Download object, so you could download the node in question and the download dialog would then change to the current view in the main window.

The single text field in the centre of the new tab looks kind of lonely, if you know what I mean. Maybe there are similar features, that could be combined? E.g. if you download a changeset, the API returns bounds in the xml.

comment:3 by brycenesbitt, 13 years ago

Yes: if this tab is added it makes sense to expand it:
Way/Node/Changeset/Relation.
Plus a control for the radius (e.g. "300 meters") of the download area.

I must admit, for a long time I never even noticed the "File->Download object..." menu item.
Thus it seemed to make sense to have download "by ID number" in the same Download dialog as everything else.

comment:4 by stoecker, 13 years ago

Summary: [PATCH] New download selector: area around given node[PATCH needs rework] New download selector: area around given node

Can't you simply add it to the "Coordinates" download like:

Get "xxx" meters around "way/node/relation" with id "yyy".

The three fields allow to choose the settings then and a click to "Get area" gets the necessary information and the fills the coordinate values of the dialog?

by brycenesbitt, 13 years ago

Attachment: IdNumberSelection.2.java added

Expanded version. Still needs work: turns out to be tricker than anticipated. Ways returned from the OSM API 0.6 don't include a bounding box. One apparently needs to load every single node and calculate the extents. It may make this entire proposed feature unworkable.

comment:5 by bastiK, 13 years ago

Better use the existing infrastructure, e.g. OsmServerObjectReader and so on. Have a look at DownloadPrimitiveAction, especially how it looked before the recent changes. It is generally a bad idea to do network IO in event dispatch thread, because the GUI may freeze, when the connection is slow.

comment:6 by brycenesbitt, 13 years ago

I'm thinking it is best to abandon this patch.

Maybe DownloadPrimitiveAction could move into the Download Dialog... but
it really does something quite different (e.g. load an object, where
the Download Dialog in the end defines a square region).

comment:7 by bastiK, 13 years ago

I think it is unlikely that anyone else will continue the patch, so you can close the ticket. IMHO, the idea is not all bad, but sometimes the implementation is more complicated than you expect...

comment:8 by brycenesbitt, 13 years ago

Resolution: wontfix
Status: newclosed

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.