Modify

Opened 13 years ago

Closed 10 years ago

#7511 closed enhancement (wontfix)

[Patch] Create expert Overpass download plugin

Reported by: joshdoe Owned by: simon04
Priority: normal Milestone:
Component: Plugin mirrored_download Version:
Keywords: overpass Cc: AM909, skyper

Description

The mirrored_download provides basic downloading from the Overpass API, but it doesn't expose the full power of the API. The plugin should at least provide for entry of a XML or Overpass QL query, and potentially have a simple GUI for choosing common queries. Bounding box and current selection can be variables to be used within the query.

Attachments (4)

7511.png (122.5 KB ) - added by simon04 13 years ago.
7511_v2.png (148.6 KB ) - added by simon04 13 years ago.
7511_q.png (312.9 KB ) - added by simon04 13 years ago.
7511b.patch (18.2 KB ) - added by simon04 13 years ago.

Download all attachments as: .zip

Change History (20)

comment:1 by simon04, 13 years ago

Component: PluginPlugin mirrored_download

by simon04, 13 years ago

Attachment: 7511.png added

comment:2 by simon04, 13 years ago

Owner: changed from team to simon04
Status: newassigned

Work in progress (see second line of screenshot):


To be done:

  • keep history of queries
  • validate query (by simple regexp)
  • maybe: more helpful error message (than: "Failed to download data. Its format is either unsupported, ill-formed, and/or inconsistent. Details (untranslated): Line 1 column 1: Content is not allowed in prolog.")

comment:3 by joshdoe, 13 years ago

Great! Can the query box be expanded for more complex queries, in both XML and QL?

in reply to:  3 comment:4 by simon04, 13 years ago

Replying to joshdoe:

Great! Can the query box be expanded for more complex queries, in both XML and QL?

I guess so. I suggest to add XML query support in a next step.

comment:5 by simon04, 13 years ago

In 5097/josm:

see #7511 - make DownloadDialog, Osm download related classes more adaptable

by simon04, 13 years ago

Attachment: 7511_v2.png added

comment:6 by simon04, 13 years ago

Added selection of object type, (simple) validation of query input, renamed to XAPI query.


comment:7 by simon04, 13 years ago

Committed above state in o28108/o28109.

comment:8 by AM909, 13 years ago

Cc: AM909 added

Even just the ability to specify a raw QL query with lat/lon (%B, %L, %T, %R) substitution would be most helpful, like:

Server part: "http://overpass-api.de/api/interpreter?data="

QL part: "node(%B,%L,%T,%R);out meta;"

It would be useful if the server specification were moved to the download dialog, since one would have to change it to switch back and forth between the current XAPI syntax (with auto bbox parameter) and the raw QL syntax.

comment:9 by skyper, 13 years ago

Cc: skyper added

comment:10 by skyper, 13 years ago

Two enhancements:

  1. It would be nice to include an option to download objects by ids or have an option to choose the server in the core function.
  2. If you select a BBox and then enter some xapi option the red warning at the bottom right is still shown which is irritating. Maybe some more general warning would make sense.

Thanks

by simon04, 13 years ago

Attachment: 7511_q.png added

comment:11 by simon04, 13 years ago

Draft:

  • Server URL also in download dialog
  • The following place holders are substituted in server URL and query:
    • {type}
    • {xapi_bbox}
    • {overpass_bbox}
    • {minlon}
    • {minlat}
    • {maxlon}
    • {maxlat}
  • Size warning in lower right corner hidden


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

in reply to:  10 comment:12 by skyper, 13 years ago

Thanks for the improvements.

Are there plans to replace the main download dialogue ?

Replying to skyper:

Two enhancements:

  1. It would be nice to include an option to download objects by ids or have an option to choose the server in the core function.

Thanks for the server option.
I propably did not explain well but what I meant was adding a server option to the Download object dialogue.

Cheers

by simon04, 13 years ago

Attachment: 7511b.patch added

comment:13 by simon04, 13 years ago

7511b.patch is the patch related to the above screenshot.

comment:14 by skyper, 12 years ago

Summary: Create expert Overpass download plugin[Patch] Create expert Overpass download plugin

comment:15 by anonymous, 11 years ago

when this plugin will be live ?

comment:16 by simon04, 10 years ago

Resolution: wontfix
Status: assignedclosed

This is obsolete now due to #11428.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
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.